aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-11-04 18:41:06 -0800
committerPinapelz <yukais@pinapelz.com>2025-11-04 18:41:06 -0800
commit63acd6b0b973e4417323e704451fb4ff8cc5291e (patch)
treed245abf7d82e0f91789bdf7e333c1b38bf9c2236
parentc71ababd5bbc7ab31f9f74eb2794e4cd04ba8d08 (diff)
fix case where name appears as undefined on score page
-rw-r--r--frontend/src/pages/Score.tsx4
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}/>
);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage