changed const to a better name
This commit is contained in:
@ -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} />;
|
||||
};
|
||||
|
Reference in New Issue
Block a user