Correcting bug on hub
This commit is contained in:
@@ -23,7 +23,7 @@ export const HubRoutes = () => {
|
||||
const HubHome = () => {
|
||||
const { data: user } = useGetIdentity<IAuthUser>();
|
||||
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>;
|
||||
}
|
||||
const ownedFirms = list.data;
|
||||
|
||||
Reference in New Issue
Block a user