diff --git a/client/src/context/UserProvider.tsx b/client/src/context/UserProvider.tsx index d66d84d..4d85a85 100644 --- a/client/src/context/UserProvider.tsx +++ b/client/src/context/UserProvider.tsx @@ -49,6 +49,7 @@ declare global { interface UserProviderState { isLogged: boolean isBurner: boolean + isWeb3Capable: boolean isLoading: boolean isOceanNetwork: boolean account: string @@ -107,6 +108,7 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> { public state = { isLogged: false, isBurner: false, + isWeb3Capable: Boolean(window.web3 || window.ethereum), isLoading: true, isOceanNetwork: false, balance: { diff --git a/client/src/context/index.tsx b/client/src/context/index.tsx index f78e3ce..ab1f187 100644 --- a/client/src/context/index.tsx +++ b/client/src/context/index.tsx @@ -3,6 +3,7 @@ import React from 'react' export const User = React.createContext({ isLogged: false, isBurner: false, + isWeb3Capable: false, isLoading: false, isOceanNetwork: false, account: '',