aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorThomas Schmidt <tomhschmidt@thomass-mbp-2.lan>2018-02-06 08:43:50 +0800
committerThomas Schmidt <tomhschmidt@thomass-mbp-2.lan>2018-02-06 08:43:50 +0800
commit91a5bcf380e050605b9f7d32ea42b105b0677f20 (patch)
tree084f3cb98bfdd6b863543a6ab4ceecebbf348bb6 /packages/website/ts
parent75ded897907461e63990fd3bb2d503213768edd8 (diff)
downloaddexon-sol-tools-91a5bcf380e050605b9f7d32ea42b105b0677f20.tar
dexon-sol-tools-91a5bcf380e050605b9f7d32ea42b105b0677f20.tar.gz
dexon-sol-tools-91a5bcf380e050605b9f7d32ea42b105b0677f20.tar.bz2
dexon-sol-tools-91a5bcf380e050605b9f7d32ea42b105b0677f20.tar.lz
dexon-sol-tools-91a5bcf380e050605b9f7d32ea42b105b0677f20.tar.xz
dexon-sol-tools-91a5bcf380e050605b9f7d32ea42b105b0677f20.tar.zst
dexon-sol-tools-91a5bcf380e050605b9f7d32ea42b105b0677f20.zip
Converted BigNumber to number for GA logging
Diffstat (limited to 'packages/website/ts')
-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();