Skip to content

Commit

Permalink
fix cosmostation keystore change
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed Sep 12, 2024
1 parent 56d0ae0 commit d2623c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/graz/src/actions/wallet/cosmostation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export const getCosmostation = (): Wallet => {
clearSession();
reconnect();
};
window.cosmostation?.cosmos.on("accountChanged", listener);
window.addEventListener("cosmostation_keystorechange", listener);
return () => {
window.cosmostation?.cosmos.off("accountChanged", listener);
window.removeEventListener("cosmostation_keystorechange", listener);
};
};

Expand Down

0 comments on commit d2623c6

Please sign in to comment.