We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 324e537 commit d4f7aafCopy full SHA for d4f7aaf
ui/src/game/create/CreateGame.tsx
@@ -24,15 +24,10 @@ export default function CreateGame() {
24
};
25
26
const saveGameToFile = () => {
27
- if (request.rounds.length <= 0) {
28
- console.log("not enough saved rounds");
29
- alert("No rounds to save to file");
30
- return;
31
- }
32
const jsonString = `data:text/json;charset=utf-8,${encodeURIComponent(JSON.stringify(request))}`;
33
const link = document.createElement("a");
34
link.href = jsonString;
35
- link.download = username + "-open-trivia-night-game.json";
+ link.download = `${username}-open-trivia-night-game.json`;
36
37
link.click();
38
0 commit comments