Merge pull request #3583 from ayshaL/fix/blank-screen-on-timezone

Fix: prevent blank screen crash when clearing timezone search field
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-04-29 12:13:40 -07:00
commit 100e569aa8
3 files changed
+10 -5

No files matched your search

+2 -2
View File
@@ -128,8 +128,8 @@ export const SettingsPage = () => {
timezoneOptions.find((tz) => tz.id === selectedTimezoneId) ?? null;
const handleTimezoneChange = (newValue: Timezone | null) => {
const newId = newValue?.id ?? "";
dispatch(setTimezone({ timezone: newId }));
if (!newValue?.id) return;
dispatch(setTimezone({ timezone: newValue.id }));
};
const handleModeChange = (e: SelectChangeEvent<ThemeMode>) => {