aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/onboarding
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/components/onboarding
parentbee26daf0c2497a11dfe944d355c4958329d1f50 (diff)
downloaddexon-sol-tools-df27f4f1183e5d5879aa0768b2edfef091750ec5.tar
dexon-sol-tools-df27f4f1183e5d5879aa0768b2edfef091750ec5.tar.gz
dexon-sol-tools-df27f4f1183e5d5879aa0768b2edfef091750ec5.tar.bz2
dexon-sol-tools-df27f4f1183e5d5879aa0768b2edfef091750ec5.tar.lz
dexon-sol-tools-df27f4f1183e5d5879aa0768b2edfef091750ec5.tar.xz
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/components/onboarding')
-rw-r--r--packages/website/ts/components/onboarding/portal_onboarding_flow.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
index edaeb3736..2014dd7b0 100644
--- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
+++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
@@ -14,7 +14,7 @@ export interface PortalOnboardingFlowProps {
providerType: ProviderType;
injectedProviderName: string;
blockchainIsLoaded: boolean;
- userEthBalanceInWei: BigNumber;
+ userEtherBalanceInWei?: BigNumber;
tokenByAddress: TokenByAddress;
updateIsRunning: (isRunning: boolean) => void;
updateOnboardingStep: (stepIndex: number) => void;
@@ -85,7 +85,7 @@ export class PortalOnboardingFlow extends React.Component<PortalOnboardingFlowPr
}
private _userHasEth(): boolean {
- return this.props.userEthBalanceInWei > new BigNumber(0);
+ return this.props.userEtherBalanceInWei > new BigNumber(0);
}
private _userHasWeth(): boolean {