Skip to content

Commit

Permalink
bugfix/wv-61
Browse files Browse the repository at this point in the history
  • Loading branch information
pbnjcub committed Feb 14, 2024
1 parent 994371e commit 2436a2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
10 changes: 8 additions & 2 deletions src/js/common/components/Settings/SettingsVerifySecretCode.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,15 @@ class SettingsVerifySecretCode extends Component {
<Title condensed={condensed}>Code Verification</Title>
<Subtitle>A 6-digit code has been sent to</Subtitle>
<PhoneSubtitle>{voterPhoneNumber || voterEmailAddress}</PhoneSubtitle>
<Subtitle>If you haven't received the code within 30 seconds, please verify the number you entered.</Subtitle>
{(voterEmailAddress) && (

{(voterEmailAddress) ? (
<Subtitle>If you haven&apos;t received the code in 30 seconds, please check your spam folder and mark the email as &apos;Not Spam&apos;.</Subtitle>
) : (
<>
{(voterPhoneNumber) && (
<Subtitle>If you haven&apos;t received the code within 30 seconds, please verify the number you entered.</Subtitle>
)}
</>
)}
<InputContainer condensed={condensed}>
<OutlinedInput
Expand Down
16 changes: 1 addition & 15 deletions src/js/pages/Friends/FindFriendsRoot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ class FindFriendsRoot extends React.Component {
this.setState({
displayStep,
setUpPagePath,
}, () => {
//Paul added this to set the next step variables like componentDidUpdate
this.setNextStepVariables();
});
// this.onBallotStoreChange();
// this.ballotStoreListener = BallotStore.addListener(this.onBallotStoreChange.bind(this));
Expand Down Expand Up @@ -139,9 +136,7 @@ class FindFriendsRoot extends React.Component {
this.setState({
displayStep,
setUpPagePath,
}, () => {
this.setNextStepVariables();
});
}, () => this.setNextStepVariables());
} else if ((setUpPagePath === 'importcontacts') && (voterContactEmailListCount > 0 && (voterContactEmailListCountPrevious !== voterContactEmailListCount))) {
// console.log('Leaving importcontacts step');
this.resetNextButtonClicked();
Expand Down Expand Up @@ -259,7 +254,6 @@ class FindFriendsRoot extends React.Component {

goToNextStep = () => {
this.resetNextButtonClicked();

const { nextStepPath } = this.state;
// console.log('FindFriendsRoot goToNextStep nextStepPath:', nextStepPath);
if (nextStepPath) {
Expand Down Expand Up @@ -342,7 +336,6 @@ class FindFriendsRoot extends React.Component {
} else {
skipForNowPath = '/ready';
}

} else if (friendConnectionActionAvailable) {
nextButtonText = 'Next';
nextStepPath = '/findfriends/friendrequests';
Expand All @@ -356,8 +349,6 @@ class FindFriendsRoot extends React.Component {
nextStepPath = '/ready';
skipForNowPath = '/ready';
}
console.log('setNextStepVariables [Condition1]: backButtonOn changing to', backButtonOn);

break;
case 2: // signin
// console.log('setUpAccountEntryPath:', setUpAccountEntryPath, ', setUpAccountBackLinkPath:', setUpAccountBackLinkPath);
Expand Down Expand Up @@ -423,10 +414,8 @@ class FindFriendsRoot extends React.Component {
skipForNowPath = '/ready';
}
editNameStepVisited = true;

break;
case 4: // 'addphoto'

case 5:
backButtonOn = true;
desktopFixedButtonsOn = false;
Expand Down Expand Up @@ -479,7 +468,6 @@ class FindFriendsRoot extends React.Component {
}
addPhotoStepVisited = true;
break;

case 6: // invitecontacts
backButtonOn = true;
desktopFixedButtonsOn = true;
Expand Down Expand Up @@ -508,7 +496,6 @@ class FindFriendsRoot extends React.Component {
skipForNowPath = '/ready';
}
break;

case 7: // friendrequests
backButtonOn = true;
desktopFixedButtonsOn = true;
Expand All @@ -528,7 +515,6 @@ class FindFriendsRoot extends React.Component {
skipForNowPath = '/ready';
reassuranceTextOff = true;
break;

}
this.setState({
addPhotoStepVisited,
Expand Down

0 comments on commit 2436a2f

Please sign in to comment.