refactor: update logic

This commit is contained in:
Mauricio Siu
2025-02-15 19:35:22 -06:00
parent 1c5cc5a0db
commit 8b71f963cc
5 changed files with 19 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ const Page = () => {
authId: data?.id || "",
},
{
enabled: !!data?.id && data?.role === "member",
enabled: !!data?.id && data?.role === "user",
},
);
@@ -62,7 +62,7 @@ export async function getServerSideProps(
await helpers.settings.isCloud.prefetch();
await helpers.auth.get.prefetch();
if (user?.role === "member") {
if (user?.role === "user") {
await helpers.user.byAuthId.prefetch({
authId: user.authId,
});