Skip to content

Commit

Permalink
fix(wallet-connector): save new current vault
Browse files Browse the repository at this point in the history
  • Loading branch information
phbarao committed Nov 17, 2023
1 parent 7ff298b commit 43085b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/socket/calbacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export const popAuth: IEventsExecute = {
const isIncludedVault = dapp.vaults.find(v => v.id === vaultId);
if (!isIncludedVault) {
dapp.vaults = [...dapp.vaults, predicate];
dapp.currentVault = predicate;

await dapp.save();
}

dapp.currentVault = predicate;
await dapp.save();

socket.to(room).emit(SocketEvents.DEFAULT, {
type: SocketEvents.CONNECTION,
data: [true],
Expand Down

0 comments on commit 43085b7

Please sign in to comment.