chess-moments 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -77,7 +77,8 @@ const getNextMoments = (moments, current) => {
|
|
|
77
77
|
|
|
78
78
|
for (const moment of slim) {
|
|
79
79
|
// Only process main line and immediate variations
|
|
80
|
-
|
|
80
|
+
// Ignore next moments with depth lower than the current moment
|
|
81
|
+
if (moment.depth > current.depth + 1 || moment.depth < current.depth) {
|
|
81
82
|
continue;
|
|
82
83
|
}
|
|
83
84
|
|