}
if (c.added < minAdded) minAdded = c.added;
if (c.added > maxAdded) maxAdded = c.added;
- return Object.assign({}, c, { priority: priority });
+ return Object.assign({ priority: priority }, c);
});
const deltaAdded = maxAdded - minAdded;
return augmentedChalls.sort((c1, c2) => {
return c.from.name || "@nonymous";
},
getRandomnessClass: function(c) {
- if (!c.options.randomness) return {};
+ if (!Number.isInteger(c.options.randomness)) return {};
return {
["random-" + c.options.randomness]: true
};
this.conn = null;
},
getRandomnessClass: function(pc) {
- if (!pc.options.randomness) return {};
+ if (!Number.isInteger(pc.options.randomness)) return {};
return {
["random-" + pc.options.randomness]: true
};