diff --git a/frontend/src/Editor/Components/Datepicker.jsx b/frontend/src/Editor/Components/Datepicker.jsx index 4c3a469f91..db0ca9db10 100644 --- a/frontend/src/Editor/Components/Datepicker.jsx +++ b/frontend/src/Editor/Components/Datepicker.jsx @@ -38,7 +38,7 @@ export const Datepicker = function Datepicker({ // eslint-disable-next-line react-hooks/exhaustive-deps }, [isValid]); - const isDateFormat = enableDate ? format : false; + const isDateFormat = enableDate === true ? format : enableDate; return (