diff --git a/ghost/portal/src/components/common/Switch.js b/ghost/portal/src/components/common/Switch.js index 19b2881962..bb35a456fa 100644 --- a/ghost/portal/src/components/common/Switch.js +++ b/ghost/portal/src/components/common/Switch.js @@ -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);