fix(build): Do not call ga on render (#35211)

This commit is contained in:
Stuart Taylor
2019-02-14 16:13:02 +00:00
committed by mrugesh mohapatra
parent 0ddbda2c78
commit d1104b0bc8

View File

@ -54,7 +54,7 @@ class DonateOtherPage extends Component {
<form
action='https://www.paypal.com/cgi-bin/webscr'
method='post'
onSubmit={ReactGA.event({category: 'donation', action: 'click', label: item.eventLabel, value: item.eventValue})}
onSubmit={() => ReactGA.event({category: 'donation', action: 'click', label: item.eventLabel, value: item.eventValue})}
target='_blank'
>
<input defaultValue='_s-xclick' name='cmd' type='hidden' />{' '}