Skip to content

Commit

Permalink
fix: avoid deleting FAK on chain during the transfer wizard logout
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho112 committed Nov 16, 2023
1 parent 2e132ba commit 74c25ad
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,7 @@ const WalletMigration = ({ open, onClose }) => {
setIsLoggingOut(true);
const failedAccounts = [];
for (const accountId of availableAccounts) {
const publicKey = await wallet.getPublicKey(accountId);
try {
const account = await wallet.getAccount(accountId);
await account.deleteKey(publicKey);
await wallet.removeWalletAccount(accountId);
} catch {
failedAccounts.push(accountIdToHash(accountId));
Expand Down

0 comments on commit 74c25ad

Please sign in to comment.