From d4c6d5ad5b9230778a87662b8b56eba5a0aac327 Mon Sep 17 00:00:00 2001 From: samaradel Date: Thu, 10 Oct 2024 12:32:36 +0300 Subject: [PATCH] Update mnemonic or hex seed variable name --- packages/playground/src/weblets/profile_manager.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/playground/src/weblets/profile_manager.vue b/packages/playground/src/weblets/profile_manager.vue index 01ab2c529a..dd416c1cbb 100644 --- a/packages/playground/src/weblets/profile_manager.vue +++ b/packages/playground/src/weblets/profile_manager.vue @@ -728,12 +728,12 @@ async function activateAccount() { activatingAccount.value = true; activating.value = true; try { - const mnemonicValue = validateMnemonic(mnemonic.value) + const mnemonicOrSeedValue = validateMnemonic(mnemonic.value) ? mnemonic.value : mnemonic.value.length === 66 ? mnemonic.value : `0x${mnemonic.value}`; - await activateAccountAndCreateTwin(mnemonicValue); + await activateAccountAndCreateTwin(mnemonicOrSeedValue); await storeAndLogin(); } catch (e) { enableReload.value = true;