Skip to content

Commit

Permalink
fix: be able to import private key account on mobile app
Browse files Browse the repository at this point in the history
  • Loading branch information
CedrikNikita committed Nov 21, 2024
1 parent 94351ac commit f67f3d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/composables/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type {
import {
ACCOUNT_TYPES,
ACCOUNT_TYPES_LIST,
IS_MOBILE_APP,
MODAL_PROTOCOL_SELECT,
PROTOCOL_LIST,
PROTOCOLS,
Expand Down Expand Up @@ -81,6 +82,10 @@ export const useAccounts = createCustomScopedComposable(() => {
enableSecureStorage: true,
onRestored: () => {
arePrivateKeysAccountsEncryptedRestored.value = true;
// On mobile private keys account are decrypted, they are stored in the secure storage
if (IS_MOBILE_APP) {
arePrivateKeysAccountsDecrypted.value = true;
}
},
},
);
Expand Down

0 comments on commit f67f3d7

Please sign in to comment.