Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Add fallback return in getLink for forward-compatible notification types

Richie McIlroyf11755c63364
diff --git a/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx b/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx
index 8db9fa5b9..c686c6310 100644
--- a/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx
+++ b/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx
@@ -127,4 +127,6 @@ function getLink(notification: APINotification) {
case "anon_view":
return `/s/${notification.videoId}`;
}
+
+ return `/s/${(notification as APINotification).videoId}`;
}