aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-19 06:19:28 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-19 06:19:28 +0800
commitfa612fe173d855dbba4111a38dbf071be23b715f (patch)
tree656a4511cb7461dbe317b14d8ca1d22815d0f4ce /packages/website/ts
parente10b30886ff0c3be4ef5f91e64107c79c9074725 (diff)
downloaddexon-sol-tools-fa612fe173d855dbba4111a38dbf071be23b715f.tar
dexon-sol-tools-fa612fe173d855dbba4111a38dbf071be23b715f.tar.gz
dexon-sol-tools-fa612fe173d855dbba4111a38dbf071be23b715f.tar.bz2
dexon-sol-tools-fa612fe173d855dbba4111a38dbf071be23b715f.tar.lz
dexon-sol-tools-fa612fe173d855dbba4111a38dbf071be23b715f.tar.xz
dexon-sol-tools-fa612fe173d855dbba4111a38dbf071be23b715f.tar.zst
dexon-sol-tools-fa612fe173d855dbba4111a38dbf071be23b715f.zip
Linting
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/@next/components/modals/modal_contact.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/website/ts/@next/components/modals/modal_contact.tsx b/packages/website/ts/@next/components/modals/modal_contact.tsx
index 69250fad1..b97baf5e7 100644
--- a/packages/website/ts/@next/components/modals/modal_contact.tsx
+++ b/packages/website/ts/@next/components/modals/modal_contact.tsx
@@ -161,6 +161,8 @@ export class ModalContact extends React.Component<Props> {
this.setState({ ...this.state, errors: [], isSubmitting: true });
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/leads', {
method: 'post',
mode: 'cors',
@@ -185,6 +187,7 @@ export class ModalContact extends React.Component<Props> {
}
}
private _parseErrors(errors: ErrorResponseProps[]): ErrorProps {
+ const initialValue: {} = {};
return _.reduce(
errors,
(hash: ErrorProps, error: ErrorResponseProps) => {
@@ -194,7 +197,7 @@ export class ModalContact extends React.Component<Props> {
return hash;
},
- {},
+ initialValue,
);
}
}