Skip to content

Commit

Permalink
fix: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlienard committed Aug 19, 2023
1 parent 98a6a40 commit 0b7ee5f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/routes/dashboard/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@
} from '~/lib/components';
import { createNotificationData, fetchGithub, storage } from '~/lib/helpers';
import { GithubIcon, GitlabIcon, Logo, RefreshIcon } from '~/lib/icons';
import { error, githubNotifications, loading, savedNotifications, settings } from '~/lib/stores';
import {
error,
filteredNotifications,
githubNotifications,
loading,
savedNotifications,
settings
} from '~/lib/stores';
import type { GithubNotification, NotificationData } from '~/lib/types';
const githubUser = $page.data.session?.githubUser;
Expand Down Expand Up @@ -147,8 +154,8 @@
// Update menu bar
if (window.__TAURI__) {
const pinned = $githubNotifications.filter(({ pinned }) => pinned);
const unread = $githubNotifications.filter(
const pinned = $filteredNotifications.filter(({ pinned }) => pinned);
const unread = $filteredNotifications.filter(
({ pinned, unread, done }) => !pinned && unread && !done
);
invoke('update_tray', {
Expand Down

0 comments on commit 0b7ee5f

Please sign in to comment.