Correcting bug on hub
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user