From 74bf215eb97685826261c91c37028fd7fa58ad85 Mon Sep 17 00:00:00 2001 From: Devin Ivy Date: Thu, 4 Jan 2024 15:44:07 -0500 Subject: [PATCH] handle empty cursor on appview listnotifs --- .../bsky/src/api/app/bsky/notification/listNotifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bsky/src/api/app/bsky/notification/listNotifications.ts b/packages/bsky/src/api/app/bsky/notification/listNotifications.ts index b977cbfe177..c840116cdf2 100644 --- a/packages/bsky/src/api/app/bsky/notification/listNotifications.ts +++ b/packages/bsky/src/api/app/bsky/notification/listNotifications.ts @@ -54,7 +54,7 @@ const skeleton = async ( ]) return { notifs: res.notifications, - cursor: res.cursor, + cursor: res.cursor || undefined, lastSeenNotifs: lastSeenRes.timestamp?.toDate().toISOString(), } }