diff --git a/tank-frontend/src/PlayerInfo.tsx b/tank-frontend/src/PlayerInfo.tsx
index af7501c..d0670ca 100644
--- a/tank-frontend/src/PlayerInfo.tsx
+++ b/tank-frontend/src/PlayerInfo.tsx
@@ -21,18 +21,28 @@ export default function PlayerInfo({ playerId }: { playerId: string }) {
- name
+ name:
{player?.name}
-
-
- {JSON.stringify(player)}
-
-
-
+
+
+ kills:
+
+
+ {player?.kills}
+
+
+
+
+ deaths:
+
+
+ {player?.deaths}
+
+
;
}
diff --git a/tank-frontend/src/serverCalls.tsx b/tank-frontend/src/serverCalls.tsx
index 6640b47..b6984d3 100644
--- a/tank-frontend/src/serverCalls.tsx
+++ b/tank-frontend/src/serverCalls.tsx
@@ -1,6 +1,8 @@
export type PlayerResponse = {
readonly name: string;
readonly id: string;
+ readonly kills: number;
+ readonly deaths: number;
};
export async function fetchTyped({ url, method }: { url: URL; method: string; }) {