changed const to a better name

This commit is contained in:
Polaris
2024-09-11 19:45:43 -04:00
parent 80314e5e3f
commit 9f84e537da

View File

@ -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 (
<div className="p-10">
<p>Failed to load user data</p>
@ -21,7 +21,7 @@ const ChunithmScorePlaylog = async () => {
);
}
const songs = await getSongsWithTitles(TypedUser.data.UserId);
const songs = await getSongsWithTitles(loggedInUser.data.UserId);
return <DataTable columns={columns} data={songs} />;
};