diff --git a/components/lib/calendar/Calendar.js b/components/lib/calendar/Calendar.js index 311cc3e2fc..62a4ab8557 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -809,7 +809,7 @@ export const Calendar = React.memo( const currentHour = currentTime.getHours(); const newHour = currentHour >= 12 ? currentHour - 12 : currentHour + 12; - if (validateHour(convertTo24Hour(newHour, !(currentHour > 11)), currentTime)) { + if (validateHour(convertTo24Hour(newHour, currentHour > 11), currentTime)) { updateTime(event, newHour, currentTime.getMinutes(), currentTime.getSeconds(), currentTime.getMilliseconds()); }