Skip to content

Commit

Permalink
fix: main useMemo, add dependency on currentDatetime
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 authored May 16, 2024
2 parents 473b71d + 62bd895 commit 3f075e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function useTimezoneSelect({
})
.filter(Boolean)
.sort((a: ITimezoneOption, b: ITimezoneOption) => a.offset - b.offset)
}, [labelStyle, timezones])
}, [labelStyle, timezones, currentDatetime])

const findFuzzyTz = (zone: string): ITimezoneOption => {
let currentTime: Spacetime
Expand Down

0 comments on commit 3f075e1

Please # to comment.