aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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