aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/inputs
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/components/inputs
parent75ded897907461e63990fd3bb2d503213768edd8 (diff)
downloaddexon-sol-tools-91a5bcf380e050605b9f7d32ea42b105b0677f20.tar.gz
dexon-sol-tools-91a5bcf380e050605b9f7d32ea42b105b0677f20.tar.zst
dexon-sol-tools-91a5bcf380e050605b9f7d32ea42b105b0677f20.zip
Converted BigNumber to number for GA logging
Diffstat (limited to 'packages/website/ts/components/inputs')
-rw-r--r--packages/website/ts/components/inputs/allowance_toggle.tsx4
1 files changed, 2 insertions, 2 deletions
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();