Skip to content

Commit

Permalink
Fix 'Clear All Target Modifiers Button' (#18)
Browse files Browse the repository at this point in the history
# Fixes

- Fixed 'Clear All Target Modifiers' button not working
  • Loading branch information
damonhook authored Jan 22, 2020
1 parent 239f6d8 commit c1954c7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "statshammer",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"proxy": "http://localhost:5000/",
"engines": {
Expand Down
5 changes: 2 additions & 3 deletions client/src/store/slices/target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ const removeTargetModifier = (state: ITargetStore, action: { payload: { index: n
state.modifiers = state.modifiers.filter((_, i) => i !== index);
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const clearAllTargetModifiers = (state: ITargetStore) => {
state = INITIAL_STATE;
const clearAllTargetModifiers = (): ITargetStore => {
return INITIAL_STATE;
};

const moveTargetModifier = (
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"*",
"."
],
"version": "1.0.0",
"version": "1.0.1",
"npmClient": "yarn"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "statshammer-express",
"private": true,
"version": "1.0.0",
"version": "1.0.1",
"engines": {
"node": "12.13.1",
"yarn": "1.19.2"
Expand Down

0 comments on commit c1954c7

Please sign in to comment.