-
Notifications
You must be signed in to change notification settings - Fork 108
Error when compiling #207
Copy link
Copy link
Open
Description
Hi, Thanks for sharing this project!
I get the following error when compiling:
ERROR in ./shared/reducers/activations.js
Z:\GitHub\itsquiz-wall\shared\reducers\activations.js
31:13 error Do not use c-like loop with i++ or i +=1, instead use forEach, Map, or For of more/no-c-like-loops✖ 1 problem (1 error, 0 warnings
I was able to fix it by replacing the loop statement (line 31) with:
newActivations.foreach((value, i) => {
if (action.offset + i < loadedActivations.length) {
loadedActivations[action.offset + i] = newActivations[i];
} else {
loadedActivations.push(newActivations[i]);
}
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels