#34 - fix notification count
This commit is contained in:
parent
0cf26819ce
commit
1de18c9685
3 changed files with 9 additions and 6 deletions
|
|
@ -116,7 +116,7 @@ const { page } = storeToRefs(usePageStore());
|
|||
|
||||
const unreadNotificationsCount = computed(() => {
|
||||
if (!user.value) return undefined;
|
||||
const count = user.value.notifications.map(
|
||||
const count = user.value.notifications.filter(
|
||||
(notification) => notification.isRead
|
||||
).length;
|
||||
if (count === 0) return undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue