Skip to content

Commit

Permalink
fix: no schedule bug
Browse files Browse the repository at this point in the history
  • Loading branch information
doprz committed Oct 5, 2024
1 parent 698990d commit 505243e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/background/lib/deleteSchedule.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { UserScheduleStore } from '@shared/storage/UserScheduleStore';

import createSchedule from './createSchedule';

/**
* Deletes a schedule with the specified name.
*
Expand Down Expand Up @@ -37,4 +39,5 @@ export default async function deleteSchedule(scheduleId: string): Promise<string
export async function deleteAllSchedules(): Promise<void> {
await UserScheduleStore.set('schedules', []);
await UserScheduleStore.set('activeIndex', 0);
await createSchedule('Schedule 1');
}

0 comments on commit 505243e

Please sign in to comment.