Skip to content

Commit

Permalink
Email Settings: remove test code, fix 'send email' link
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunanoordin committed Apr 24, 2024
1 parent c743106 commit 32c0ffb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/pages/settings/email.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ class EmailSettingsPage extends React.Component {
}

render() {
const isEmailValid = false && !!this.props.user?.valid_email;
const isEmailVerfied = true || !!this.props.user?.confirmed_at;
const isEmailValid = !!this.props.user?.valid_email;
const isEmailVerfied = !!this.props.user?.confirmed_at;

return (
<div className="content-container">
Expand Down Expand Up @@ -278,13 +278,14 @@ class EmailSettingsPage extends React.Component {
? <div>
<i className='fa fa-check-circle' style={{ color: '#51db72' }} />
{' '}
<Translate content="emailSettings.general.emailVerified" /></div>
<Translate content="emailSettings.general.emailVerified" />
</div>
: <div>
<i className='fa fa-times-circle' style={{ color: '#e35950' }} />
{' '}
<Translate content="emailSettings.general.emailUnverified" />
{' | '}
<a href="#" onClick={requestConfirmationEmail}>
<a href="#" onClick={this.requestConfirmationEmail}>
<Translate content="emailSettings.general.emailUnverifiedPrompt" />
</a>
</div>
Expand Down

0 comments on commit 32c0ffb

Please sign in to comment.