Skip to content

Commit 8880378

Browse files
committed
chore(review): prevent storing undefined for weekly schedules type
1 parent 8a03dff commit 8880378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/meetings/schedules/useWeeklySchedules.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const useWeeklySchedules = () => {
6969
if (value === 1) type = 'weekend';
7070
if (value === 2) type = 'outgoing';
7171

72-
localStorage.setItem(LOCALSTORAGE_KEY, type!);
72+
localStorage.setItem(LOCALSTORAGE_KEY, type ?? 'midweek');
7373
};
7474

7575
return { value, handleScheduleChange, tabs };

0 commit comments

Comments
 (0)