Skip to content

Commit

Permalink
separate classic game stats from multiplayer game stats by type
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKreft committed Feb 26, 2024
1 parent 57bc23a commit 24899fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/MultiplayerPlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const MultiplayerPlay: React.FC<MultiPlayProps> = ({
axios
.post("/api/game", {
userId: playerId,
type: "",
type: "multiplayer",
difficulty,
isSuccess: hasWon,
duration: hasWon && puzzleStartTime ? now - puzzleStartTime : null,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const Play: React.FC<PlayProps> = ({ userId }) => {
axios
.post("/api/game", {
userId,
type: "",
type: "classic",
difficulty,
isSuccess: hasWon,
duration: hasWon && startTime ? now - startTime : null,
Expand Down

0 comments on commit 24899fa

Please sign in to comment.