aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-20 09:10:47 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-20 09:10:47 +0800
commit6de499459cb29f74cabd91c441f85e4c2325a6d7 (patch)
tree1325823751805126d821a24cf3b2b710427a2dac /packages
parent9ab55fd07d3a11616d12c95ef512f100d12a0aee (diff)
downloaddexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar
dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar.gz
dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar.bz2
dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar.lz
dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar.xz
dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar.zst
dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.zip
fix: do not use document on import
Diffstat (limited to 'packages')
-rw-r--r--packages/instant/src/components/zero_ex_instant_provider.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx
index 8be53ee20..ac246128c 100644
--- a/packages/instant/src/components/zero_ex_instant_provider.tsx
+++ b/packages/instant/src/components/zero_ex_instant_provider.tsx
@@ -19,8 +19,6 @@ import { Heartbeater } from '../util/heartbeater';
import { generateAccountHeartbeater, generateBuyQuoteHeartbeater } from '../util/heartbeater_factory';
import { providerStateFactory } from '../util/provider_state_factory';
-fonts.include();
-
export type ZeroExInstantProviderProps = ZeroExInstantProviderRequiredProps &
Partial<ZeroExInstantProviderOptionalProps>;
@@ -86,6 +84,7 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider
}
constructor(props: ZeroExInstantProviderProps) {
super(props);
+ fonts.include();
const initialAppState = ZeroExInstantProvider._mergeDefaultStateWithProps(this.props);
this._store = store.create(initialAppState);
}