Skip to content

Commit

Permalink
Merge pull request #3811 from lredmo1/wevote_bug_178
Browse files Browse the repository at this point in the history
WV-178
  • Loading branch information
DaleMcGrew authored Jan 20, 2024
2 parents 8de6d6f + 54ae62e commit b500460
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/js/components/Settings/VoterEmailAddressEntry.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ class VoterEmailAddressEntry extends Component {
};

onBlur = () => {
const { voterEmailAddressIsValid } = this.state;
if (!voterEmailAddressIsValid) {
const { voterEmailAddress } = this.state;
if (!voterEmailAddress) {
// Only hide the phone verification button if the user has not "unlocked" the button used to send the message.
this.setState({
displayEmailVerificationButton: false,
Expand Down
4 changes: 2 additions & 2 deletions src/js/components/Settings/VoterPhoneVerificationEntry.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ class VoterPhoneVerificationEntry extends Component {
}

onBlur = () => {
const { voterSMSPhoneNumberIsValid } = this.state;
if (!voterSMSPhoneNumberIsValid) {
const { voterSMSPhoneNumber } = this.state;
if (!voterSMSPhoneNumber) {
// Only hide the phone verification button if the user has not "unlocked" the button used to send the message.
this.setState({
displayPhoneVerificationButton: false,
Expand Down

0 comments on commit b500460

Please sign in to comment.