Fix radio input onChange event

[MAILPOET-2677]
This commit is contained in:
Amine Ben hammou
2020-03-20 01:29:19 +01:00
committed by Veljko V
parent 88b12dc1cc
commit 15c34c9937

View File

@ -25,7 +25,7 @@ export default function NewSubscriberNotifications() {
type="radio"
checked={enabled === '1'}
value="1"
onClick={() => setEnabled('1')}
onChange={onChange(setEnabled)}
/>
{t('yes')}
{' '}
@ -33,7 +33,7 @@ export default function NewSubscriberNotifications() {
type="radio"
checked={enabled === ''}
value=""
onClick={() => setEnabled('')}
onChange={onChange(setEnabled)}
/>
{t('no')}
<br />