Skip to content

Commit

Permalink
Update MetaMask warning text
Browse files Browse the repository at this point in the history
  • Loading branch information
ardier16 committed Mar 4, 2024
1 parent b494b11 commit e5e117d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions src/contexts/Web3ProviderContext/Web3ProviderContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@ const Web3ProviderContextProvider: FC<Props> = ({ 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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const WalletConnection: FC<StepProps> = ({

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
}
Expand Down Expand Up @@ -144,15 +144,15 @@ const WalletConnection: FC<StepProps> = ({
{isMetamaskInstalled ? (
<AppButton
iconLeft={ICON_NAMES.metamask}
text={`Connect metamask`}
text={`Connect MetaMask`}
modification='border-circle'
onClick={connectProvider}
isDisabled={isPending}
/>
) : (
<AppButton
iconLeft={ICON_NAMES.metamask}
text={isPending ? `Please, reload page` : `Install metamask`}
text={isPending ? `Please, reload page` : `Install MetaMask`}
modification='border-circle'
onClick={openInstallMetamaskLink}
target='_blank'
Expand Down

0 comments on commit e5e117d

Please sign in to comment.