Correcting bug on hub
This commit is contained in:
1 parent
ab3947b4a9
commit
9ef599bbd5
1 file changed
+1
-1
@@ -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