Skip to content

Commit

Permalink
Update variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmyta committed Jun 26, 2024
1 parent 2ee8ad5 commit f344e8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions projects/plugins/protect/src/js/state/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ const setThreatIsUpdating = ( threatId, isUpdating ) => {
return { type: SET_THREAT_IS_UPDATING, payload: { threatId, isUpdating } };
};

const setThreatsAreFixing = threatsAreFixing => {
return { type: SET_THREATS_ARE_FIXING, threatsAreFixing }; // todo: change var back to threatIds once confirmed working
const setThreatsAreFixing = threatIds => {
return { type: SET_THREATS_ARE_FIXING, threatIds };
};

const ignoreThreat =
Expand Down
2 changes: 1 addition & 1 deletion projects/plugins/protect/src/js/state/reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const threatsUpdating = ( state = {}, action ) => {
const threatsAreFixing = ( state = [], action ) => {
switch ( action.type ) {
case SET_THREATS_ARE_FIXING:
return action.threatsAreFixing; // todo: change var back to threatIds once confirmed working
return action.threatIds;
}
return state;
};
Expand Down

0 comments on commit f344e8c

Please sign in to comment.