File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
frontend/src/components/navbar Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ const fetchEnrichedNotifications = async () => {
8686 } catch {
8787 // ignore enrichment errors
8888 }
89- if (! enriched .message )
89+ if (! enriched .message && enriched . actor )
9090 enriched .message = makeMessage (n .kind , enriched .actor );
9191 return enriched ;
9292 }),
@@ -102,7 +102,7 @@ const { data: notifications } = useQuery({
102102const notificationItems = computed (() => {
103103 const items = (notifications .value ?.data as EnrichedNotification []) || [];
104104 // sort newest first — try common timestamp fields (date, createdAt, created_at)
105- return items .slice ().sort ((a , b ) => a .date ?.localeCompare (b .date ?? " " ) || 0 );
105+ return items .slice ().sort ((a , b ) => b .date ?.localeCompare (a .date ?? " " ) || 0 );
106106});
107107
108108const _deleteNotificationMutation = useDeleteNotificationMutation ();
You can’t perform that action at this time.
0 commit comments