diff --git a/src/stores/user.js b/src/stores/user.js index 66270cc2..1f6fc792 100644 --- a/src/stores/user.js +++ b/src/stores/user.js @@ -949,22 +949,23 @@ export const useUserStore = defineStore('User', () => { notification.created_at ); } - if (!D.dateFriended) { - if (notification.type === 'Unfriend') { - D.unFriended = true; - if ( - !appearanceSettingsStore.hideUnfriends - ) { - D.dateFriended = - notification.created_at; - } - } - if (notification.type === 'Friend') { - D.unFriended = false; + if ( + !D.dateFriended && + notification.type === 'Unfriend' + ) { + D.unFriended = true; + if ( + !appearanceSettingsStore.hideUnfriends + ) { D.dateFriended = notification.created_at; } } + if (notification.type === 'Friend') { + D.unFriended = false; + D.dateFriended = + notification.created_at; + } if ( notification.type === 'Friend' || (notification.type === 'Unfriend' &&