edit local user fix
This commit is contained in:
1 parent
bb9c675421
commit
7043487fc2
4 files changed
+35
-24
No files matched your search
@@ -170,7 +170,7 @@ export function useGyms() {
|
||||
queryKey: ["gyms"],
|
||||
queryFn: () =>
|
||||
fetchApi<{ data: { gyms: Gym[] } }>("/api/gyms").then(
|
||||
(res) => res.data?.gyms ?? [],
|
||||
(res) => res.data?.gyms ?? (Array.isArray(res) ? res : []),
|
||||
),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user