@reactoo/watchtogether-sdk-js 2.7.19 → 2.7.21

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.7.19",
3
+ "version": "2.7.21",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -128,7 +128,7 @@ const maxJitter = (x) => {
128
128
  return a / (1 + Math.exp(-b * (x - c))) + d; // Fixed the typo here
129
129
  }
130
130
 
131
- const chunkArray = (array, chunkSize) => {
131
+ const chunkArray = (array = [], chunkSize) => {
132
132
  array = [...array];
133
133
  if (!array?.length) return [[]];
134
134