fix: can make moves after undo

This commit is contained in:
Cozma Rares
2023-08-17 22:30:47 +03:00
parent e51bbcd36c
commit 9d87a344c3
7 changed files with 71 additions and 30 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import { nanoid as nanoidOriginal } from "nanoid";
dotenv.config();
const ID_LENGTH = isNaN(parseInt(process.env.ID_LENGTH!))
? 10
? 8
: parseInt(process.env.ID_LENGTH!);
const nanoid = () => nanoidOriginal(ID_LENGTH);