Front: Settings URL: Tweak to avoid code repitition

This commit is contained in:
Arthur Jamet
2023-06-21 16:27:22 +01:00
committed by Clément Le Bihan
parent f362531d42
commit 45595408fe
2 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ type SetttingsNavigatorProps = {
const SetttingsNavigator = (props?: RouteProps<SetttingsNavigatorProps>) => {
const userQuery = useQuery(['user'], () => API.getUserInfo());
const user = useMemo(() => userQuery.data, [userQuery]);
console.log(props?.screen);
if (userQuery.isLoading) {
return (
<Center style={{ flex: 1 }}>