Skip to content

Commit

Permalink
Fix switch wallet after delete
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto-matto committed Jul 7, 2021
1 parent 4eaeefe commit a2f21ba
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 a2f21ba

Please sign in to comment.