Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
odolga committed Jul 18, 2023
1 parent c512e35 commit 8f98ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformState.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function transformState(state, actions) {

switch (type) {
case 'addProperties':
(Object.assign(state, action['extraData']));
(Object.assign(state, action.extraData));
break;

case 'clear':
Expand All @@ -20,7 +20,7 @@ function transformState(state, actions) {
break;

case 'removeProperties':
for (const keyToDelete of action['keysToRemove']) {
for (const keyToDelete of action.keysToRemove) {
delete state[keyToDelete];
}
break;
Expand Down

0 comments on commit 8f98ea3

Please sign in to comment.