From c3bcf7841ca8dfc753e3be8e416c65be988db54b Mon Sep 17 00:00:00 2001 From: Govard Barkhatov Date: Fri, 6 Dec 2024 12:28:48 +0200 Subject: [PATCH] change error message --- src/app/context/wallet/BTCWalletProvider.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/app/context/wallet/BTCWalletProvider.tsx b/src/app/context/wallet/BTCWalletProvider.tsx index dbf29ef3..6f7af1ae 100644 --- a/src/app/context/wallet/BTCWalletProvider.tsx +++ b/src/app/context/wallet/BTCWalletProvider.tsx @@ -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),