Skip to content

Fix verification modal getting stuck on Verifying after a correct code (WV-4229)#4857

Merged
DaleMcGrew merged 1 commit into
wevote:developfrom
0x416c616e:WV-4229
Jul 5, 2026
Merged

Fix verification modal getting stuck on Verifying after a correct code (WV-4229)#4857
DaleMcGrew merged 1 commit into
wevote:developfrom
0x416c616e:WV-4229

Conversation

@0x416c616e

Copy link
Copy Markdown
Contributor

When you signed up with your name and email on the For Voters page and then entered the emailed 6-digit code, the modal would get stuck on Verifying forever instead of finishing. On a successful verification the component tried to close the modal by calling closeSignInModalLocal, but that function only does something if a closeSignInModal prop was passed in. A few of the places that use this modal, namely WelcomeForVoters, CompleteYourProfile, and SetUpAccountEditName, only pass closeVerifyModal instead, so on success nothing actually closed the modal and it just sat there saying Verifying. Entering a wrong code still worked fine since that path uses closeVerifyModal, so only the success case was broken. The fix just adds a fallback so that when closeSignInModal isn't there it uses closeVerifyModal instead, which gets those three flows working again without changing any of the flows that already passed closeSignInModal. I reproduced the stuck state first, then confirmed the modal now closes on a correct code, and checked that a wrong code still shows the error and lets you try again.

…e (WV-4229)

When you signed up with your name and email on the For Voters page and then entered the emailed 6-digit code, the modal would get stuck on Verifying instead of closing and finishing. On a successful verification the component tried to close the modal by calling closeSignInModalLocal, but that only does something when a closeSignInModal prop is passed in. A few places that use this modal (WelcomeForVoters, CompleteYourProfile, and SetUpAccountEditName) only pass closeVerifyModal, so on success nothing closed the modal and it just sat there. A wrong code still worked since that path uses closeVerifyModal, so only the success case was broken. This adds a fallback so that when closeSignInModal isn't there it uses closeVerifyModal instead, which fixes those three flows without changing the ones that already passed closeSignInModal.
@DaleMcGrew

Copy link
Copy Markdown
Member

Thank you @0x416c616e! 👍

@DaleMcGrew DaleMcGrew merged commit 0b6a319 into wevote:develop Jul 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants