Skip to content

Commit

Permalink
Merge pull request #11 from ItaloMedici/bugfix/10
Browse files Browse the repository at this point in the history
Bugfix/10
  • Loading branch information
ItaloMedici authored Jul 28, 2024
2 parents 78839e7 + e3b08b7 commit 3e321c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion context/board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
leaveBoardKey,
playerChoiceKey,
resetBoardKey,
revealCardsKey,
} from "@/use-cases/event-keys/board";
import { useRouter } from "next/navigation";
import {
Expand Down Expand Up @@ -167,7 +168,7 @@ export const BoardProvider = ({
);
});

const revealCardsEventKey = playerChoiceKey(self.boardId);
const revealCardsEventKey = revealCardsKey(self.boardId);

socket.on(revealCardsEventKey, (message) => {
console.log(`[${revealCardsEventKey}] for ${self.name}:`, message);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "next start",
"lint": "next lint",
"postinstall": "npx prisma generate",
"db:push": "prisma db push --preview-feature"
"db:push": "npx prisma db push"
},
"dependencies": {
"@hookform/resolvers": "^3.3.4",
Expand Down

0 comments on commit 3e321c3

Please sign in to comment.