Correcting bug on hub

This commit is contained in:
2025-04-12 12:51:27 +02:00
parent ab3947b4a9
commit 9ef599bbd5

View File

@@ -23,7 +23,7 @@ export const HubRoutes = () => {
const HubHome = () => { const HubHome = () => {
const { data: user } = useGetIdentity<IAuthUser>(); const { data: user } = useGetIdentity<IAuthUser>();
const { data: list } = useList<IFirm>({resource: "hub/users/firms/", pagination: { mode: "off" }}, ) const { data: list } = useList<IFirm>({resource: "hub/users/firms/", pagination: { mode: "off" }}, )
if (user === undefined || list === undefined) { if (user === undefined || user === null || list === undefined) {
return <p>Loading</p>; return <p>Loading</p>;
} }
const ownedFirms = list.data; const ownedFirms = list.data;