diff --git a/src/editor/components/datevisibilityinput.tsx b/src/editor/components/datevisibilityinput.tsx index 623ac5ba2af94b4bf909fe25e3555ab8ae49d149..3406fb610c4046e1f91c90934ec6b5ce0cfa8f2f 100644 --- a/src/editor/components/datevisibilityinput.tsx +++ b/src/editor/components/datevisibilityinput.tsx @@ -8,7 +8,7 @@ type DateVisibilityInputProps = { function DateVisibilityInput({ date, onDateChange }: DateVisibilityInputProps) { const isDate = (date?: string): boolean => { - if (!date) { + if (!date || date.length !== 10) { return false; } @@ -80,7 +80,6 @@ function DateVisibilityInput({ date, onDateChange }: DateVisibilityInputProps) { onChange={(e) => updateVisibilityState(e.target.checked)} /> <label htmlFor="date-checkbox">Always visible</label> - {editedDate} {!alwaysVisible && ( <input type={"date"}