fix: lint

This commit is contained in:
DecDuck
2025-11-22 10:46:03 +11:00
parent e230f79b54
commit 1e7ed34a60
4 changed files with 10 additions and 4 deletions

View File

@ -4,7 +4,10 @@ import type { NotificationModel } from "~/prisma/client/models";
const ws = new WebSocketHandler("/api/v1/notifications/ws");
export const useNotifications = () =>
useState<Array<SerializeObject<NotificationModel>>>("notifications", () => []);
useState<Array<SerializeObject<NotificationModel>>>(
"notifications",
() => [],
);
ws.listen((e) => {
const notification = JSON.parse(e) as SerializeObject<NotificationModel>;