Skip to content

Commit

Permalink
fix(angular): wipe selected wallet on adapter disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
danmt committed Sep 14, 2021
1 parent 848ee68 commit ebe09fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/src/wallet/wallet.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class WalletStore extends ComponentStore<WalletState> {
return this.adapter$.pipe(
isNotNull,
switchMap((adapter) =>
fromAdapterEvent(adapter, 'disconnect').pipe(tap(() => this.patchState(initialState)))
fromAdapterEvent(adapter, 'disconnect').pipe(tap(() => this.patchState({ name: null })))
)
);
});
Expand Down

0 comments on commit ebe09fc

Please sign in to comment.