From e5e117dbcd5094fb6e5412e2324a6cf40630fd87 Mon Sep 17 00:00:00 2001 From: ardier16 Date: Mon, 4 Mar 2024 17:15:05 +0200 Subject: [PATCH] Update MetaMask warning text --- src/contexts/Web3ProviderContext/Web3ProviderContext.tsx | 9 +++++---- .../components/1_WalletConnection/WalletConnection.tsx | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/contexts/Web3ProviderContext/Web3ProviderContext.tsx b/src/contexts/Web3ProviderContext/Web3ProviderContext.tsx index c9606e8..cd1fba2 100644 --- a/src/contexts/Web3ProviderContext/Web3ProviderContext.tsx +++ b/src/contexts/Web3ProviderContext/Web3ProviderContext.tsx @@ -119,10 +119,11 @@ const Web3ProviderContextProvider: FC = ({ children }) => { const isMetamask = providerDetector.providers.metamask && !isOkx if (!isMetamask) { - return bus.emit( - BUS_EVENTS.warning, - `Unsupported cryptocurrency wallet. Please try again with MetaMask`, - ) + return bus.emit(BUS_EVENTS.warning, { + title: 'Unsupported cryptocurrency wallet', + message: + 'Please, disable all wallets except MetaMask and try again.', + }) } Provider.setChainsDetails( diff --git a/src/pages/MainPage/components/1_WalletConnection/WalletConnection.tsx b/src/pages/MainPage/components/1_WalletConnection/WalletConnection.tsx index e111443..a73c6e8 100644 --- a/src/pages/MainPage/components/1_WalletConnection/WalletConnection.tsx +++ b/src/pages/MainPage/components/1_WalletConnection/WalletConnection.tsx @@ -86,7 +86,7 @@ const WalletConnection: FC = ({ const openInstallMetamaskLink = useCallback(() => { if (!installMMLink) { - bus.emit(BUS_EVENTS.warning, `Your browser is not support Metamask`) + bus.emit(BUS_EVENTS.warning, `Your browser does not support MetaMask`) return } @@ -144,7 +144,7 @@ const WalletConnection: FC = ({ {isMetamaskInstalled ? ( = ({ ) : (