diff --git a/script.js b/script.js index 5ba0bf9..61695e1 100644 --- a/script.js +++ b/script.js @@ -373,7 +373,7 @@ function getPatterns(thisHand = null, thisMinimumPoints = null) { let points = Object.values(patterns).map(pattern => pattern.points); let maxPoints = Math.max(...points); - if (maxPoints < minimumPoints) { + if (maxPoints < thisMinimumPoints) { return []; }