diff options
| author | secondl1ght <[email protected]> | 2022-08-31 19:57:50 -0400 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-08-31 19:57:50 -0400 |
| commit | 13a6b2e0886e140c0534912718f0c97320537522 (patch) | |
| tree | 6c0c344a9c526665872170e202e37e75de15fb26 | |
| parent | a6805befce6fa60a17a99d2d3ad50aaaa1d70a8f (diff) | |
| download | coinos-ui-13a6b2e0886e140c0534912718f0c97320537522.tar.gz coinos-ui-13a6b2e0886e140c0534912718f0c97320537522.zip | |
change back to shorter conditional
| -rw-r--r-- | src/routes/[username]/settings/_security.svelte | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/routes/[username]/settings/_security.svelte b/src/routes/[username]/settings/_security.svelte index 481f8b2c..c14c5b3b 100644 --- a/src/routes/[username]/settings/_security.svelte +++ b/src/routes/[username]/settings/_security.svelte @@ -134,13 +134,12 @@ <PincodeInput /> </Pincode> </div> - {/if} - {#if $user.twofa && !disabling2fa && !setting2fa} + {:else if $user.twofa} <button type="button" class="primary" on:click={toggleDisabling}> <Icon icon="mobile" style="mr-1" /> {$t('user.settings.twofaDisable')} </button> - {:else if !$user.twofa && !disabling2fa && !setting2fa} + {:else} <button type="button" class="primary" on:click={toggleEnabling}> <Icon icon="mobile" style="mr-1" /> {$t('user.settings.twofaSetup')} |
