projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix king tracking in Otage variant
[vchess.git]
/
client
/
src
/
data
/
challengeCheck.js
diff --git
a/client/src/data/challengeCheck.js
b/client/src/data/challengeCheck.js
index
fbfb445
..
7665f6f
100644
(file)
--- a/
client/src/data/challengeCheck.js
+++ b/
client/src/data/challengeCheck.js
@@
-1,7
+1,7
@@
import { extractTime } from "@/utils/timeControl";
export function checkChallenge(c) {
- const vid = parseInt(c.vid);
+ const vid = parseInt(c.vid
, 10
);
if (isNaN(vid) || vid <= 0) return "Please select a variant";
const tc = extractTime(c.cadence);