diff --git a/src/common/hooks/useCompanyTimeZone.ts b/src/common/hooks/useCompanyTimeZone.ts index 4260c0094d..9f189a838b 100644 --- a/src/common/hooks/useCompanyTimeZone.ts +++ b/src/common/hooks/useCompanyTimeZone.ts @@ -23,7 +23,7 @@ export function useCompanyTimeZone() { useEffect(() => { if (statics?.timezones) { const result = statics.timezones.find( - (format: any) => format.id === company?.settings?.timezone_id ?? '1' + (format: any) => format.id === (company?.settings?.timezone_id ?? '1') ); if (result) { diff --git a/src/common/hooks/useCurrentCompanyDateFormats.ts b/src/common/hooks/useCurrentCompanyDateFormats.ts index 8611cacdc7..8ea747cb1a 100644 --- a/src/common/hooks/useCurrentCompanyDateFormats.ts +++ b/src/common/hooks/useCurrentCompanyDateFormats.ts @@ -23,7 +23,7 @@ export function useCurrentCompanyDateFormats() { useEffect(() => { if (statics?.date_formats) { const result = statics.date_formats.find( - (format: any) => format.id === company?.settings?.date_format_id ?? '0' + (format: any) => format.id === (company?.settings?.date_format_id ?? '0') ); if (result) {