fix(build): Do not call ga on render (#35211)
This commit is contained in:
committed by
mrugesh mohapatra
parent
0ddbda2c78
commit
d1104b0bc8
@ -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' />{' '}
|
||||
|
Reference in New Issue
Block a user