diff --git a/src/modules/wallet/selectors.ts b/src/modules/wallet/selectors.ts index a2b9d2b4..f2143928 100644 --- a/src/modules/wallet/selectors.ts +++ b/src/modules/wallet/selectors.ts @@ -1,6 +1,6 @@ import { isLoadingType } from '../loading/selectors' -import { CONNECT_WALLET_REQUEST } from './actions' +import { CONNECT_WALLET_REQUEST, ENABLE_WALLET_REQUEST } from './actions' import { WalletState } from './reducer' export const getState: (state: any) => WalletState = state => state.wallet @@ -11,6 +11,8 @@ export const getError = (state: any) => getState(state).error export const isConnected = (state: any) => getData(state) !== null export const isConnecting = (state: any) => isLoadingType(getLoading(state), CONNECT_WALLET_REQUEST) +export const isEnabling = (state: any) => + isLoadingType(getLoading(state), ENABLE_WALLET_REQUEST) export const getNetwork = (state: any) => isConnected(state) ? getData(state)!.network : undefined