aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers/portal_onboarding_flow.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-06-01 02:40:21 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-06-01 02:54:25 +0800
commitdf27f4f1183e5d5879aa0768b2edfef091750ec5 (patch)
tree9b9ba591f9cc1cc34c56440e4368433150acb99d /packages/website/ts/containers/portal_onboarding_flow.ts
parentbee26daf0c2497a11dfe944d355c4958329d1f50 (diff)
downloaddexon-sol-tools-df27f4f1183e5d5879aa0768b2edfef091750ec5.tar.gz
dexon-sol-tools-df27f4f1183e5d5879aa0768b2edfef091750ec5.tar.zst
dexon-sol-tools-df27f4f1183e5d5879aa0768b2edfef091750ec5.zip
Change userEtherBalanceInWei to optional so we can know if its loading
Diffstat (limited to 'packages/website/ts/containers/portal_onboarding_flow.ts')
-rw-r--r--packages/website/ts/containers/portal_onboarding_flow.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/containers/portal_onboarding_flow.ts b/packages/website/ts/containers/portal_onboarding_flow.ts
index 84739192f..8202fb2ae 100644
--- a/packages/website/ts/containers/portal_onboarding_flow.ts
+++ b/packages/website/ts/containers/portal_onboarding_flow.ts
@@ -17,7 +17,7 @@ interface ConnectedState {
providerType: ProviderType;
injectedProviderName: string;
blockchainIsLoaded: boolean;
- userEthBalanceInWei: BigNumber;
+ userEtherBalanceInWei?: BigNumber;
tokenByAddress: TokenByAddress;
}
@@ -33,7 +33,7 @@ const mapStateToProps = (state: State): ConnectedState => ({
providerType: state.providerType,
injectedProviderName: state.injectedProviderName,
blockchainIsLoaded: state.blockchainIsLoaded,
- userEthBalanceInWei: state.userEtherBalanceInWei,
+ userEtherBalanceInWei: state.userEtherBalanceInWei,
tokenByAddress: state.tokenByAddress,
hasBeenSeen: state.hasPortalOnboardingBeenSeen,
});