diff --git a/packages/playground/src/weblets/profile_manager.vue b/packages/playground/src/weblets/profile_manager.vue index 9fd5dd0052..330c5987d1 100644 --- a/packages/playground/src/weblets/profile_manager.vue +++ b/packages/playground/src/weblets/profile_manager.vue @@ -46,7 +46,7 @@ @tab:change=" () => { clearError(); - passwordInput.validate(password); + clearFields(); } " > @@ -295,6 +295,15 @@ watch( m => { if (m) { nextTick().then(mounted); + } else { + nextTick().then(() => { + if (isStoredCredentials()) { + activeTab.value = 0; + } else { + activeTab.value = 1; + } + clearFields(); + }); } }, ); @@ -412,6 +421,11 @@ function clearError() { createAccountError.value = null; } +function clearFields() { + password.value = ""; + mnemonic.value = ""; +} + async function activate(mnemonic: string) { clearError(); activating.value = true;