Skip to content

Commit

Permalink
safer hash check
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed May 30, 2024
1 parent da29ad9 commit cc61f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reducers/create-otp-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export function getInitialState(userDefinedConfig) {
]

const sessionId = new URLSearchParams(
document.location.hash.split('#/')[1]
document.location.hash.split('#/')?.[1]
).get('sessionId')

return {
Expand Down

0 comments on commit cc61f84

Please sign in to comment.