Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dianabirs committed Jan 20, 2025
1 parent 9f15fa8 commit cb3e98c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ export const TimeSelection = ({
{ length: 12 - timezoneOffset },
(_, i) => i + timezoneOffset
);
const isFirstDayOfTheMonthAndPozitiveOffset =
const isFirstDayOfTheMonthAndPositiveOffset =
selectedTime === TimeValue.months && onDay === 1 && timezoneOffset > 0;

useEffect(() => {
const { isDirty: isHourDirty } = getFieldState(TimeSelectionFields.hour);
if (
shouldRestrictSelectableHours &&
isFirstDayOfTheMonthAndPozitiveOffset &&
isFirstDayOfTheMonthAndPositiveOffset &&
!isHourDirty &&
!editMode
) {
Expand Down Expand Up @@ -123,7 +123,7 @@ export const TimeSelection = ({
<TimeFields
selectableHours={
shouldRestrictSelectableHours &&
isFirstDayOfTheMonthAndPozitiveOffset
isFirstDayOfTheMonthAndPositiveOffset
? hoursForTimezoneOffset
: undefined
}
Expand Down

0 comments on commit cb3e98c

Please sign in to comment.