projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Saving current state
[vchess.git]
/
client
/
src
/
data
/
challengeCheck.js
diff --git
a/client/src/data/challengeCheck.js
b/client/src/data/challengeCheck.js
index
0a3a991
..
c533b11
100644
(file)
--- a/
client/src/data/challengeCheck.js
+++ b/
client/src/data/challengeCheck.js
@@
-50,10
+50,12
@@
export function checkChallenge(c)
return "Increment must be positive";
c.increment = timeUnitToSeconds(incrementValue, incrementUnit);
}
return "Increment must be positive";
c.increment = timeUnitToSeconds(incrementValue, incrementUnit);
}
+ else
+ c.increment = 0;
// Basic alphanumeric check for players names
let playerCount = 0;
// Basic alphanumeric check for players names
let playerCount = 0;
- for (
p of c.players
)
+ for (
const p of c.to
)
{
if (p.name.length > 0)
{
{
if (p.name.length > 0)
{