log an event on max click (#2827)

This commit is contained in:
Justin Domingue 2021-11-22 09:27:29 -05:00 committed by GitHub
parent e54ffcc483
commit cb0ea3f14d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -346,6 +346,10 @@ export default function Swap({ history }: RouteComponentProps) {
const handleMaxInput = useCallback(() => { const handleMaxInput = useCallback(() => {
maxInputAmount && onUserInput(Field.INPUT, maxInputAmount.toExact()) maxInputAmount && onUserInput(Field.INPUT, maxInputAmount.toExact())
ReactGA.event({
category: 'Swap',
action: 'Max',
})
}, [maxInputAmount, onUserInput]) }, [maxInputAmount, onUserInput])
const handleOutputSelect = useCallback( const handleOutputSelect = useCallback(