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[prevIndex];
21
+ return moments[0];
22
22
  }
23
23
 
24
24
  // Split moments until the current index
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chess-moments",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "PGN parser that transforms PGN files into chess \"moments\"",
5
5
  "main": "index.js",
6
6
  "files": [