Skip to content

Commit

Permalink
Merge pull request #564 from crypto-com/fix/delete-wallet
Browse files Browse the repository at this point in the history
Problem (Fix #565): Wallet is not deleted properly occasionally
  • Loading branch information
crypto-eddy authored Jul 7, 2021
2 parents 4eaeefe + a2f21ba commit 51cbcd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/home/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function HomeLayout(props: HomeLayoutProps) {
// Switch to existing default wallet
const allWalletsData = await walletService.retrieveAllWallets();
setWalletList(allWalletsData);
await walletService.setCurrentSession(new Session(walletList[0]));
await walletService.setCurrentSession(new Session(allWalletsData[0]));
const currentSession = await walletService.retrieveCurrentSession();
const currentAsset = await walletService.retrieveDefaultWalletAsset(currentSession);
setSession(currentSession);
Expand Down

0 comments on commit 51cbcd1

Please sign in to comment.