Skip to content

Commit

Permalink
Fix DateTimeSettingsTimeZoneSelect (#7688)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijreilly authored Oct 15, 2024
1 parent 1492340 commit 17ec538
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { detectTimeZone } from '@/localization/utils/detectTimeZone';
import { findAvailableTimeZoneOption } from '@/localization/utils/findAvailableTimeZoneOption';
import { AVAILABLE_TIMEZONE_OPTIONS } from '@/settings/accounts/constants/AvailableTimezoneOptions';
import { Select } from '@/ui/input/components/Select';
import { isDefined } from '~/utils/isDefined';

type DateTimeSettingsTimeZoneSelectProps = {
value?: string;
Expand All @@ -25,7 +26,9 @@ export const DateTimeSettingsTimeZoneSelect = ({
value={value}
options={[
{
label: `System settings - ${systemTimeZoneOption.label}`,
label: isDefined(systemTimeZoneOption)
? `System settings - ${systemTimeZoneOption.label}`
: 'System settings',
value: 'system',
},
...AVAILABLE_TIMEZONE_OPTIONS,
Expand Down

0 comments on commit 17ec538

Please sign in to comment.