aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-11-09 06:28:22 +0800
committerGitHub <noreply@github.com>2018-11-09 06:28:22 +0800
commit5ffd20214c02d5a6cb7aaffe79d3baa5ee527da7 (patch)
treeac5a85a545b01f916ffc449d34fa6216b615b660 /packages/instant/src/components
parentb388d5496272d535b5c192a7098f4227bb1fb3f2 (diff)
parent8493d619b45d84eedf9f8d349e45a4d3e759c538 (diff)
downloaddexon-0x-contracts-5ffd20214c02d5a6cb7aaffe79d3baa5ee527da7.tar.gz
dexon-0x-contracts-5ffd20214c02d5a6cb7aaffe79d3baa5ee527da7.tar.zst
dexon-0x-contracts-5ffd20214c02d5a6cb7aaffe79d3baa5ee527da7.zip
Merge pull request #1231 from 0xProject/fix/instant/default-amount-quote
[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.tsx4
1 files changed, 2 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..58e78c522 100644
--- a/packages/instant/src/components/zero_ex_instant_provider.tsx
+++ b/packages/instant/src/components/zero_ex_instant_provider.tsx
@@ -92,12 +92,12 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider
// tslint:disable-next-line:no-floating-promises
asyncData.fetchAvailableAssetDatasAndDispatchToStore(this._store);
}
-
+ // tslint:disable-next-line:no-floating-promises
+ 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();
}