aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/website/ts/components/generate_order/generate_order_form.tsx2
-rw-r--r--packages/website/ts/components/inputs/allowance_toggle.tsx4
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/components/generate_order/generate_order_form.tsx b/packages/website/ts/components/generate_order/generate_order_form.tsx
index c07e6173a..2a62d4b9e 100644
--- a/packages/website/ts/components/generate_order/generate_order_form.tsx
+++ b/packages/website/ts/components/generate_order/generate_order_form.tsx
@@ -266,7 +266,7 @@ export class GenerateOrderForm extends React.Component<GenerateOrderFormProps, G
category: 'Portal',
action: 'Sign Order Success',
label: this.props.tokenByAddress[debitToken.address].symbol,
- value: debitToken.amount,
+ value: debitToken.amount.toNumber(),
});
this.setState({
globalErrMsg: '',
diff --git a/packages/website/ts/components/inputs/allowance_toggle.tsx b/packages/website/ts/components/inputs/allowance_toggle.tsx
index dc6fdc198..1f8c5fcd6 100644
--- a/packages/website/ts/components/inputs/allowance_toggle.tsx
+++ b/packages/website/ts/components/inputs/allowance_toggle.tsx
@@ -81,14 +81,14 @@ export class AllowanceToggle extends React.Component<AllowanceToggleProps, Allow
category: 'Portal',
action: 'Set Allowance Success',
label: this.props.token.symbol,
- value: newAllowanceAmountInBaseUnits,
+ value: newAllowanceAmountInBaseUnits.toNumber(),
});
}, () => {
ReactGA.event({
category: 'Portal',
action: 'Set Allowance Failure',
label: this.props.token.symbol,
- value: newAllowanceAmountInBaseUnits,
+ value: newAllowanceAmountInBaseUnits.toNumber(),
});
});
await this.props.refetchTokenStateAsync();