Skip to content

Commit

Permalink
Merge branch 'add-memeContract-btcWallet' of github.com:burrowHQ/burr…
Browse files Browse the repository at this point in the history
…ow-cash into add-memeContract-btcWallet
  • Loading branch information
lq0-github committed Jan 18, 2025
2 parents 18049d0 + 5bf144e commit a145975
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion components/Header/WalletButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,21 @@ const WalletButton = () => {
dispatch(_hideModal());
dispatch(_hideModalMEME());
};

const fetchData = (id?: string) => {
if (
id &&
accountId &&
accountId !== id &&
(window.localStorage.getItem("near-wallet-selector:selectedWalletId") == '"btc-wallet"' ||
accountId.startsWith("bc1"))
) {
// for btc wallet to switch accountId
dispatch(setAccountId(id));
setTimeout(() => {
window.location.reload();
}, 500);
return;
}
dispatch(setAccountId(id));
dispatch(fetchAccount());
dispatch(fetchAccountMEME());
Expand Down

0 comments on commit a145975

Please sign in to comment.