-
Notifications
You must be signed in to change notification settings - Fork 53
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
Explicitly save sessionId when starting over #1225
Explicitly save sessionId when starting over #1225
Conversation
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.
Consider using getUrlParams
function.
lib/reducers/create-otp-reducer.js
Outdated
@@ -153,6 +153,10 @@ export function getInitialState(userDefinedConfig) { | |||
...(transitModeSettings || []) | |||
] | |||
|
|||
const sessionId = new URLSearchParams( |
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.
Can use new URLSearchParams(getUrlParams())
from core-utils.
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.
Great catch thanks!
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
Description:
Our new start over (that supported subpaths) wasn't preserving sessionId. This is really the only variable that needs saving upon a start over
PR Checklist: