diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-11-04 18:41:06 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-11-04 18:41:06 -0800 |
| commit | 63acd6b0b973e4417323e704451fb4ff8cc5291e (patch) | |
| tree | d245abf7d82e0f91789bdf7e333c1b38bf9c2236 | |
| parent | c71ababd5bbc7ab31f9f74eb2794e4cd04ba8d08 (diff) | |
fix case where name appears as undefined on score page
| -rw-r--r-- | frontend/src/pages/Score.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/pages/Score.tsx b/frontend/src/pages/Score.tsx index 3701b1f..fb6db90 100644 --- a/frontend/src/pages/Score.tsx +++ b/frontend/src/pages/Score.tsx @@ -104,7 +104,7 @@ const Score = () => { } else { url.searchParams.append("userId", user.id.toString()); } - if(targetUserId !== user.id.toString()){ + if(targetUserId && targetUserId !== user.id.toString()){ setViewingOwnScores(false); } else{ @@ -179,7 +179,7 @@ const Score = () => { if (isLoading || loading) { return ( - <LoadingDisplay message={"Loading Your Scores for " + formattedGameName}/> + <LoadingDisplay message={"Loading Scores for " + formattedGameName}/> ); } |
