log an event on max click (#2827)
This commit is contained in:
parent
e54ffcc483
commit
cb0ea3f14d
@ -346,6 +346,10 @@ export default function Swap({ history }: RouteComponentProps) {
|
||||
|
||||
const handleMaxInput = useCallback(() => {
|
||||
maxInputAmount && onUserInput(Field.INPUT, maxInputAmount.toExact())
|
||||
ReactGA.event({
|
||||
category: 'Swap',
|
||||
action: 'Max',
|
||||
})
|
||||
}, [maxInputAmount, onUserInput])
|
||||
|
||||
const handleOutputSelect = useCallback(
|
||||
|
Loading…
Reference in New Issue
Block a user