Ensure defined response (#7511)

This commit is contained in:
Oliver authored and GitHub committed 2024-06-25 20:16:45 +10:00
1 parent da42fdf06e
commit 3ed2a4a16b
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ export function Header() {
return null;
});
setNotificationCount(response?.data?.count ?? 0);
return response?.data;
return response?.data ?? null;
} catch (error) {
return error;
}