summaryrefslogtreecommitdiff
path: root/src/reducers
diff options
context:
space:
mode:
Diffstat (limited to 'src/reducers')
-rw-r--r--src/reducers/simulations.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reducers/simulations.js b/src/reducers/simulations.js
index 5a34ee7f..9d830877 100644
--- a/src/reducers/simulations.js
+++ b/src/reducers/simulations.js
@@ -1,7 +1,7 @@
import {
ADD_SIMULATION_SUCCEEDED,
CLOSE_NEW_SIMULATION_MODAL,
- DELETE_SIMULATION,
+ DELETE_SIMULATION_SUCCEEDED,
OPEN_NEW_SIMULATION_MODAL,
SET_AUTH_VISIBILITY_FILTER
} from "../actions/simulations";
@@ -16,8 +16,8 @@ export function authorizationsOfCurrentUser(state = [], action) {
...state,
action.authorization
];
- case DELETE_SIMULATION:
- return [];
+ case DELETE_SIMULATION_SUCCEEDED:
+ return state.filter(authorization => authorization[1] !== action.id);
default:
return state;
}