diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-11-08 16:16:46 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-11-08 16:18:04 +0800 |
commit | 7a99b2099d38906c7b42e96557499cf4cb39985f (patch) | |
tree | db4318d33300dc9c787a8ebfce576cd70b941440 /packages/instant/src/components | |
parent | f6abc007ffb249e4bbf85b8a7a77309d43e0a147 (diff) | |
download | dexon-sol-tools-7a99b2099d38906c7b42e96557499cf4cb39985f.tar dexon-sol-tools-7a99b2099d38906c7b42e96557499cf4cb39985f.tar.gz dexon-sol-tools-7a99b2099d38906c7b42e96557499cf4cb39985f.tar.bz2 dexon-sol-tools-7a99b2099d38906c7b42e96557499cf4cb39985f.tar.lz dexon-sol-tools-7a99b2099d38906c7b42e96557499cf4cb39985f.tar.xz dexon-sol-tools-7a99b2099d38906c7b42e96557499cf4cb39985f.tar.zst dexon-sol-tools-7a99b2099d38906c7b42e96557499cf4cb39985f.zip |
fix(instant): update buy quote at start up in the case of default amount
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r-- | packages/instant/src/components/zero_ex_instant_provider.tsx | 3 |
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 1fb5cf64f..cd23014a8 100644 --- a/packages/instant/src/components/zero_ex_instant_provider.tsx +++ b/packages/instant/src/components/zero_ex_instant_provider.tsx @@ -92,12 +92,11 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider // tslint:disable-next-line:no-floating-promises asyncData.fetchAvailableAssetDatasAndDispatchToStore(this._store); } - + asyncData.fetchCurrentBuyQuoteAndDispatchToStore(this._store); // warm up the gas price estimator cache just in case we can't // grab the gas price estimate when submitting the transaction // tslint:disable-next-line:no-floating-promises gasPriceEstimator.getGasInfoAsync(); - // tslint:disable-next-line:no-floating-promises this._flashErrorIfWrongNetwork(); } |