diff --git a/client/src/app/user/[name]/page.tsx b/client/src/app/user/[name]/page.tsx
index 7a768b5..cb6cc6c 100644
--- a/client/src/app/user/[name]/page.tsx
+++ b/client/src/app/user/[name]/page.tsx
@@ -64,93 +64,102 @@ export default async function Profile({ params }: { params: { name: string } })
Recent games
- {data.recentGames.map((game) => (
- -
-
+ {data.recentGames.map((game) => {
+ let endReason = game.endReason as string;
+ if (endReason === "repetition") {
+ endReason = "threefold repetition";
+ } else if (endReason === "insufficient") {
+ endReason = "insufficient material";
+ }
-
{game.endReason}
-
-
-
- Started
-
- {" "}
- {new Date(game.startedAt as number).toLocaleString()}
-
-
-
- Ended
-
- {" "}
- {new Date(game.endedAt as number).toLocaleString()}
-
-
-
-
-
- Review game
-
-
- ))}
+
+
+ {endReason}
+
+
+
+ Started
+
+ {" "}
+ {new Date(game.startedAt as number).toLocaleString()}
+
+
+
+ Ended
+
+ {" "}
+ {new Date(game.endedAt as number).toLocaleString()}
+
+
+
+
+
+ Review game
+
+
+ );
+ })}