fix(notifications): tolerate refresh failures

This commit is contained in:
2026-10-02 13:04:44 +03:30
parent 6ec1f309dc
commit c1f4c140fc

View File

@@ -100,6 +100,8 @@ export function NotificationsProvider({ children }: { children: ReactNode }) {
try { try {
const payload = await api.getNotifications({ limit: PAGE_SIZE, offset: 0 }); const payload = await api.getNotifications({ limit: PAGE_SIZE, offset: 0 });
applyNotificationList(payload); applyNotificationList(payload);
} catch {
// Notification refresh is best-effort and must not break route rendering.
} finally { } finally {
setIsLoading(false); setIsLoading(false);
} }