We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b956ab3 + b3e988f commit e164463Copy full SHA for e164463
src/js/hooks/useVoterCanEditPolitician.js
@@ -46,6 +46,11 @@ export default function useVoterCanEditPolitician () {
46
}, [updateVoterCanEditPoliticianProfile]);
47
48
const onVoterStoreChange = useCallback(() => {
49
+ const secretCodeVerificationStatus = VoterStore.getSecretCodeVerificationStatus();
50
+ const { secretCodeVerified } = secretCodeVerificationStatus;
51
+ if (secretCodeVerified) {
52
+ VoterActions.voterEmailAddressRetrieve();
53
+ }
54
updateVoterCanEditPoliticianProfile();
55
56
0 commit comments