fix: change GAME_ROUNDS from strings to numbers
This commit is contained in:
parent
7d3c456efe
commit
02ccc88d24
8 changed files with 181 additions and 14 deletions
|
|
@ -14,7 +14,7 @@ const validRequest: GameRequest = {
|
|||
target_language: "it",
|
||||
pos: "noun",
|
||||
difficulty: "easy",
|
||||
rounds: "3",
|
||||
rounds: 3,
|
||||
};
|
||||
|
||||
const fakeTerms = [
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export const createGameSession = async (
|
|||
request.target_language,
|
||||
request.pos,
|
||||
request.difficulty,
|
||||
Number(request.rounds),
|
||||
request.rounds,
|
||||
);
|
||||
|
||||
const answerKey = new Map<string, number>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue