Skip to content

Commit c0302fb

Browse files
committed
Fix notification after start
1 parent bcfcc24 commit c0302fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compositions/summary-data-today.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import { ITabsRepository } from '../repository/tabs-repository-interface';
99
export async function useWebUsageSummaryForDay(): Promise<DaySummary | null> {
1010
const repo = await injectTabsRepository();
1111

12+
const unSortedTabs = repo.getTabs();
13+
if (unSortedTabs.length == 0) return null;
14+
1215
const dataToday = getData(todayLocalDate(), repo);
1316
const dataYesterday = getData(startOfYesterday().toLocaleDateString('en-US'), repo);
1417

0 commit comments

Comments
 (0)