-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(@aws-amplify/auth): Default hash to #
when null
#6279
fix(@aws-amplify/auth): Default hash to #
when null
#6279
Conversation
null
, so default to #
to prevent errors#
when null
Codecov Report
@@ Coverage Diff @@
## main #6279 +/- ##
=======================================
Coverage 73.26% 73.26%
=======================================
Files 208 208
Lines 12920 12920
Branches 2524 2525 +1
=======================================
Hits 9466 9466
Misses 3263 3263
Partials 191 191
Continue to review full report at Codecov.
|
Can we get this fix in, please? It's breaking my app at the moment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Issue #, if available: Fixes #6059
Description of changes:
When a URL doesn't contain
#...
,parse(url)
returns{ hash: null }
, which creates a run-time error forhash.substr(1)
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.