Make Analytics API non-async
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user