Make Analytics API non-async

This commit is contained in:
fragosti
2018-07-12 16:57:03 -07:00
parent 0941e0a929
commit 1df074b73e
13 changed files with 44 additions and 71 deletions

View File

@@ -65,8 +65,7 @@ export const RelayerGridTile: React.StatelessComponent<RelayerGridTileProps> = (
const topTokens = props.relayerInfo.topTokens;
const weeklyTxnVolume = props.relayerInfo.weeklyTxnVolume;
const onClick = () => {
// tslint:disable-next-line:no-floating-promises
analytics.trackAsync('Relayer Click', {
analytics.track('Relayer Click', {
name: props.relayerInfo.name,
});
utils.openUrl(link);

View File

@@ -43,8 +43,7 @@ class TokenLink extends React.Component<TokenLinkProps, TokenLinkState> {
public render(): React.ReactNode {
const onClick = (event: React.MouseEvent<HTMLElement>) => {
event.stopPropagation();
// tslint:disable-next-line:no-floating-promises
analytics.trackAsync('Token Click', {
analytics.track('Token Click', {
tokenSymbol: this.props.tokenInfo.symbol,
});
const tokenLink = this._tokenLinkFromToken(this.props.tokenInfo, this.props.networkId);