diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-13 18:42:01 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-13 18:42:01 +0800 |
commit | 2e5ff53d7271509accc226e83d76d1785350b1d2 (patch) | |
tree | 020bbe96131fcd173d7902b4c86e2b4141183f30 /packages/website/ts/components/order_json.tsx | |
parent | 1229c61ba420b280708b39c04cc21f31e43ed3cf (diff) | |
download | dexon-sol-tools-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.gz dexon-sol-tools-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.zst dexon-sol-tools-2e5ff53d7271509accc226e83d76d1785350b1d2.zip |
-fetch';
Diffstat (limited to 'packages/website/ts/components/order_json.tsx')
-rw-r--r-- | packages/website/ts/components/order_json.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/order_json.tsx b/packages/website/ts/components/order_json.tsx index 35188c024..7a732de6a 100644 --- a/packages/website/ts/components/order_json.tsx +++ b/packages/website/ts/components/order_json.tsx @@ -1,5 +1,5 @@ import { ECSignature } from '@0xproject/types'; -import { BigNumber, logUtils } from '@0xproject/utils'; +import { BigNumber, fetchAsync, logUtils } from '@0xproject/utils'; import * as _ from 'lodash'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; @@ -148,7 +148,7 @@ You can see and fill it here: ${this.state.shareLink}`); const bitlyRequestUrl = `${constants.URL_BITLY_API}/v3/shorten?access_token=${ configs.BITLY_ACCESS_TOKEN }&longUrl=${longUrl}`; - const response = await fetch(bitlyRequestUrl); + const response = await fetchAsync(bitlyRequestUrl); const responseBody = await response.text(); const bodyObj = JSON.parse(responseBody); if (response.status !== 200 || bodyObj.status_code !== 200) { |