chess-moments 1.4.5 → 1.4.6
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.
|
@@ -18,7 +18,7 @@ const getPrevMoment = (moments, current) => {
|
|
|
18
18
|
|
|
19
19
|
// If previous moment does not have a move and it's the initial position, return it
|
|
20
20
|
if (!prevMoments?.move && prevMoments.fen === moments[0].fen) {
|
|
21
|
-
return moments[
|
|
21
|
+
return moments[0];
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// Split moments until the current index
|