lib/pairing_matrix/server/public/matrix.js in pairing_matrix-2.0 vs lib/pairing_matrix/server/public/matrix.js in pairing_matrix-2.1
- old
+ new
@@ -194,10 +194,10 @@
}
};
this.getValidPairs = function (pairingData) {
return _.filter(pairingData, function (data) {
- return (!_.isEmpty(data[0]) && !_.isEmpty(data[1]));
+ return (!_.isEmpty(data[0]) && !_.isEmpty(data[1])) && data.length == 3;
})
};
this.getPlayerNames = function (pairingData) {
var playerNames = [];