diff options
author | fragosti <francesco.agosti93@gmail.com> | 2019-01-09 08:45:35 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2019-01-09 08:45:35 +0800 |
commit | d00dd07435ff4d87b0868cfe9c5426fc191d9b23 (patch) | |
tree | 99974784237a5389efa51a24e9b32fe4391723d0 /packages/website/ts/components/modals | |
parent | 16fc2c3776f43a1fb9cc1f608c26e924741ba8cd (diff) | |
download | dexon-sol-tools-d00dd07435ff4d87b0868cfe9c5426fc191d9b23.tar dexon-sol-tools-d00dd07435ff4d87b0868cfe9c5426fc191d9b23.tar.gz dexon-sol-tools-d00dd07435ff4d87b0868cfe9c5426fc191d9b23.tar.bz2 dexon-sol-tools-d00dd07435ff4d87b0868cfe9c5426fc191d9b23.tar.lz dexon-sol-tools-d00dd07435ff4d87b0868cfe9c5426fc191d9b23.tar.xz dexon-sol-tools-d00dd07435ff4d87b0868cfe9c5426fc191d9b23.tar.zst dexon-sol-tools-d00dd07435ff4d87b0868cfe9c5426fc191d9b23.zip |
fix: use getBackendBaseUrl instead of hardcoded string
Diffstat (limited to 'packages/website/ts/components/modals')
-rw-r--r-- | packages/website/ts/components/modals/modal_contact.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/website/ts/components/modals/modal_contact.tsx b/packages/website/ts/components/modals/modal_contact.tsx index a3a1f13f5..7414df7d9 100644 --- a/packages/website/ts/components/modals/modal_contact.tsx +++ b/packages/website/ts/components/modals/modal_contact.tsx @@ -12,6 +12,7 @@ import { Icon } from 'ts/components/icon'; import { Input, InputWidth } from 'ts/components/modals/input'; import { Heading, Paragraph } from 'ts/components/text'; import { GlobalStyle } from 'ts/constants/globalStyle'; +import { utils } from 'ts/utils/utils'; export enum ModalContactType { General = 'GENERAL', @@ -279,7 +280,7 @@ export class ModalContact extends React.Component<Props> { try { // Disabling no-unbound method b/c no reason for _.isEmpty to be bound // tslint:disable:no-unbound-method - const response = await fetch(`https://website-api.0xproject.com${endpoint}`, { + const response = await fetch(`${utils.getBackendBaseUrl()}${endpoint}`, { method: 'post', mode: 'cors', credentials: 'same-origin', |