Fixed lint errors

no refs
This commit is contained in:
Rishabh 2021-06-11 14:06:16 +05:30
parent 950495c836
commit fc0ef9d164

View File

@ -74,7 +74,7 @@ export const SwitchStyles = `
}
`;
function Switch({id, label='', onToggle, checked = false}) {
function Switch({id, label = '', onToggle, checked = false}) {
const {action} = useContext(AppContext);
const [isChecked, setIsChecked] = useState(checked);
const isActionChanged = ['updateNewsletter:failed', 'updateNewsletter:success'].includes(action);