Automatically update the user data when 2FA is enabled

This commit is contained in:
Dane Everitt 2019-12-22 20:23:43 -08:00
parent eb39826f46
commit 2a653cdd8d
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 16 additions and 23 deletions

View file

@ -20,7 +20,7 @@ export default () => {
</div>
:
<div>
<SetupTwoFactorModal visible={visible} onDismissed={() => setVisible(false)}/>
{visible && <SetupTwoFactorModal visible={visible} onDismissed={() => setVisible(false)}/>}
<p className={'text-sm'}>
You do not currently have two-factor authentication enabled on your account. Click
the button below to begin configuring it.