Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): add exhaustive default case to notification link resolver

Richie McIlroy2a1e0dfd96c1
diff --git a/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx b/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx
index 10840ecc5..27cbd83b4 100644
--- a/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx
+++ b/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx
@@ -122,5 +122,7 @@ function getLink(notification: APINotification) {
case "view":
case "anon_view":
return `/s/${notification.videoId}`;
+ default:
+ return `/s/${(notification as { videoId: string }).videoId}`;
}
}