mail-unlink: use emailpotentialremove

This commit is contained in:
May 2023-09-30 21:35:14 -07:00
parent 6b59732aa1
commit 4377052856

View file

@ -131,7 +131,7 @@
<p>Change username</p>
</button>
<button on:click={() => accOpts.emailChange(optPicker)}>
<button on:click={() => ($account.email ? accOpts.emailPotentialRemove : accOpts.emailChange)(optPicker)}>
<img src="/static/assets/icons/mail.svg" alt="change email">
<p>Change email{#if $account.email}<span class="monospaceText"><br />{$account.email}</span>{/if}</p>
</button>