From 24899fa4fe471f91fe077bd3286ddefa4455bcd7 Mon Sep 17 00:00:00 2001 From: paulkreft Date: Mon, 26 Feb 2024 17:01:03 +0100 Subject: [PATCH] separate classic game stats from multiplayer game stats by type --- frontend/src/components/MultiplayerPlay.tsx | 2 +- frontend/src/components/Play.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/MultiplayerPlay.tsx b/frontend/src/components/MultiplayerPlay.tsx index 5759ee5..9a0d8e6 100644 --- a/frontend/src/components/MultiplayerPlay.tsx +++ b/frontend/src/components/MultiplayerPlay.tsx @@ -60,7 +60,7 @@ export const MultiplayerPlay: React.FC = ({ axios .post("/api/game", { userId: playerId, - type: "", + type: "multiplayer", difficulty, isSuccess: hasWon, duration: hasWon && puzzleStartTime ? now - puzzleStartTime : null, diff --git a/frontend/src/components/Play.tsx b/frontend/src/components/Play.tsx index 966a1f2..ad9f472 100644 --- a/frontend/src/components/Play.tsx +++ b/frontend/src/components/Play.tsx @@ -51,7 +51,7 @@ export const Play: React.FC = ({ userId }) => { axios .post("/api/game", { userId, - type: "", + type: "classic", difficulty, isSuccess: hasWon, duration: hasWon && startTime ? now - startTime : null,