Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): remove unnecessary type assertion in notification link resolver

Richie McIlroy8eae09fceb9c
diff --git a/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx b/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx
index 27cbd83b4..33f1becf4 100644
--- a/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx
+++ b/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx
@@ -123,6 +123,6 @@ function getLink(notification: APINotification) {
case "anon_view":
return `/s/${notification.videoId}`;
default:
- return `/s/${(notification as { videoId: string }).videoId}`;
+ return `/s/${notification.videoId}`;
}
}