Skip to content

Commit

Permalink
change error message
Browse files Browse the repository at this point in the history
  • Loading branch information
gbarkhatov authored and jrwbabylonlab committed Dec 13, 2024
1 parent 681745c commit c3bcf78
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/app/context/wallet/BTCWalletProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,9 @@ export const BTCWalletProvider = ({ children }: PropsWithChildren) => {
) {
return;
}
let errorMessage;
switch (true) {
case /Incorrect address prefix for (Testnet \/ Signet|Mainnet)/.test(
error.message,
):
errorMessage = supportedNetworkMessage;
break;
default:
errorMessage = error.message;
break;
}
showError({
error: {
message: errorMessage,
message: error?.message,
errorState: ErrorState.WALLET,
},
retryAction: () => connectBTC(walletProvider),
Expand Down

0 comments on commit c3bcf78

Please sign in to comment.