From 6197a7b1e17dcd029fb0a4f97416446434260991 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 2 Jun 2023 05:36:00 -0600 Subject: [PATCH] Update Notifications.vue component, fix filtering logic to prevent endless spinner --- resources/assets/components/sections/Notifications.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/assets/components/sections/Notifications.vue b/resources/assets/components/sections/Notifications.vue index ecad32907..b2c904184 100644 --- a/resources/assets/components/sections/Notifications.vue +++ b/resources/assets/components/sections/Notifications.vue @@ -301,16 +301,16 @@ return; } let data = res.data.filter(n => { - if(n.type == 'share' && !n.status) { + if(n.type == 'share' && (!n.status || !n.account)) { return false; } - if(n.type == 'comment' && !n.status) { + if(n.type == 'comment' && (!n.status || !n.account)) { return false; } - if(n.type == 'mention' && !n.status) { + if(n.type == 'mention' && (!n.status || !n.account)) { return false; } - if(n.type == 'favourite' && !n.status) { + if(n.type == 'favourite' && (!n.status || !n.account)) { return false; } if(n.type == 'follow' && !n.account) {