Skip to content

Commit

Permalink
Update mnemonic or hex seed variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
samaradel committed Oct 10, 2024
1 parent ca2c36b commit d4c6d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/profile_manager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d4c6d5a

Please sign in to comment.