Skip to content

Commit

Permalink
🔧 fix profile search unknow page for 1s (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
MailyLehoux authored Nov 4, 2021
1 parent 55f940d commit 11526a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/profile/[email]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Profile = () => {
const router = useRouter();
const { t } = useContext(i18nContext);
const { context, email: userEmail } = router.query;
const { data, error } = useQuery<GetUserAgencyAndAllAgenciesResult>(
const { data, error, loading } = useQuery<GetUserAgencyAndAllAgenciesResult>(
USER_INFOS,
{
variables: { email: userEmail },
Expand Down Expand Up @@ -81,7 +81,7 @@ const Profile = () => {

return (
<div>
{data?.User?.length > 0 && !error ? (
{(data?.User?.length > 0 && !error) || loading ? (
<CommonPage page={"profile"} faded={false} context={context}>
<div className="flex flex-row justify-center mt-4 mb-20">
<div className="flex flex-col justify-center max-w-screen-md w-full p-4">
Expand Down

0 comments on commit 11526a9

Please sign in to comment.