Skip to content

Commit

Permalink
show alert message for here-wallet 'Here Wallet is not supported on t…
Browse files Browse the repository at this point in the history
…estnet'
  • Loading branch information
pivanov committed Aug 2, 2024
1 parent 5299f6b commit 847c28e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/modal-ui/src/lib/components/WalletOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ export const WalletOptions: React.FC<WalletOptionsProps> = ({
} sidebar ${module.id}`}
key={module.id}
onClick={() => {
if (
selector.options.network.networkId === "testnet" &&
module.id === "here-wallet"
) {
alert("Here Wallet is not supported on testnet");
return;
}
if (module.id === modulesToRender[index].id) {
setActiveWalletId(module.id!);
}
Expand Down

0 comments on commit 847c28e

Please sign in to comment.