diff --git a/app/(dashboard)/profile/page.tsx b/app/(dashboard)/profile/page.tsx
index 338ca7a..67df1d9 100644
--- a/app/(dashboard)/profile/page.tsx
+++ b/app/(dashboard)/profile/page.tsx
@@ -8,88 +8,88 @@ import { getProfileById } from "@/queries/users";
import { tryCatch } from "@/utils/tryCatch";
export default async function Profile() {
- const session = await getServerSession(authOptions);
- if (!session?.user) return redirect("/auth/signin?callbackUrl=/profile");
- const [error, profile] = await tryCatch(getProfileById(session?.user.id));
- if (error) {
- if (error.message === "Invalid token.") redirect("/auth/signin");
- return ;
- }
- return (
-
-
-
Profile
-
- Profile Status
- {verifiedStatus(profile?.verified ?? false)}
-
-
-
- {/*
+ const session = await getServerSession(authOptions);
+ if (!session?.user) return redirect("/auth/signin?callbackUrl=/profile");
+ const [error, profile] = await tryCatch(getProfileById(session?.user.id));
+ if (error) {
+ if (error.message === "Invalid token.") redirect("/auth/signin");
+ return ;
+ }
+ return (
+
+
+
Profile
+
+ Profile Status
+ {verifiedStatus(profile?.verified ?? false)}
+
+
+
+ {/*
*/}
-
- );
+
+ );
}
function verifiedStatus(status: boolean) {
- switch (status) {
- case true:
- return Verified;
- case false:
- return Not Verified;
- default:
- return Unknown;
- }
+ switch (status) {
+ case true:
+ return Verified;
+ case false:
+ return Not Verified;
+ default:
+ return Unknown;
+ }
}