Skip to content

Commit

Permalink
Update Notifications.vue component, fix filtering logic to prevent en…
Browse files Browse the repository at this point in the history
…dless spinner
  • Loading branch information
dansup committed Jun 2, 2023
1 parent 9c0d0a3 commit 3df9b53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/assets/components/sections/Notifications.vue
Expand Up @@ -234,16 +234,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) {
Expand Down

0 comments on commit 3df9b53

Please sign in to comment.