diff --git a/packages/website/public/index.html b/packages/website/public/index.html index aeef03fe92..b40ee62fa2 100644 --- a/packages/website/public/index.html +++ b/packages/website/public/index.html @@ -1,53 +1,44 @@ - - - - - - - - - 0x: The Protocol for Trading Tokens - - - - - - - - - - - - - - - - -
- -
- - - +
+ + + - - - - + }(document, "script", "twitter-wjs")); + + + + + - - - - + + + + + \ No newline at end of file diff --git a/packages/website/ts/components/inputs/allowance_toggle.tsx b/packages/website/ts/components/inputs/allowance_toggle.tsx index 1f8c5fcd6f..7d41d96335 100644 --- a/packages/website/ts/components/inputs/allowance_toggle.tsx +++ b/packages/website/ts/components/inputs/allowance_toggle.tsx @@ -75,22 +75,24 @@ export class AllowanceToggle extends React.Component { - ReactGA.event({ - category: 'Portal', - action: 'Set Allowance Success', - label: this.props.token.symbol, - value: newAllowanceAmountInBaseUnits.toNumber(), - }); - }, () => { - ReactGA.event({ - category: 'Portal', - action: 'Set Allowance Failure', - label: this.props.token.symbol, - value: newAllowanceAmountInBaseUnits.toNumber(), - }); - }); + await this.props.blockchain.setProxyAllowanceAsync(this.props.token, newAllowanceAmountInBaseUnits).then( + () => { + ReactGA.event({ + category: 'Portal', + action: 'Set Allowance Success', + label: this.props.token.symbol, + value: newAllowanceAmountInBaseUnits.toNumber(), + }); + }, + () => { + ReactGA.event({ + category: 'Portal', + action: 'Set Allowance Failure', + label: this.props.token.symbol, + value: newAllowanceAmountInBaseUnits.toNumber(), + }); + }, + ); await this.props.refetchTokenStateAsync(); } catch (err) { this.setState({