chess-moments 1.4.3 → 1.4.4
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.
|
@@ -7,11 +7,6 @@ const getNextMoments = (moments, current) => {
|
|
|
7
7
|
try {
|
|
8
8
|
const next = [];
|
|
9
9
|
|
|
10
|
-
// If it's the first moment without move, add the next moment
|
|
11
|
-
if (current.index === 0 && !current.move) {
|
|
12
|
-
return [moments[1]];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
10
|
// Get next moments for further processing
|
|
16
11
|
const nextIndex = moments.indexOf(current) + 1;
|
|
17
12
|
const nextMoment = moments[nextIndex];
|