diff --git a/components/scoreplaylog/page.tsx b/components/scoreplaylog/page.tsx index 6448936..eeaad64 100644 --- a/components/scoreplaylog/page.tsx +++ b/components/scoreplaylog/page.tsx @@ -11,9 +11,9 @@ const userSchema = z.object({ const ChunithmScorePlaylog = async () => { const { user } = await getAuth(); - const TypedUser = userSchema.safeParse(user); + const loggedInUser = userSchema.safeParse(user); - if (!TypedUser.success) { + if (!loggedInUser.success) { return (

Failed to load user data

@@ -21,7 +21,7 @@ const ChunithmScorePlaylog = async () => { ); } - const songs = await getSongsWithTitles(TypedUser.data.UserId); + const songs = await getSongsWithTitles(loggedInUser.data.UserId); return ; };