Skip to content

Commit

Permalink
Update orders list when an order is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
andreapier committed Oct 2, 2024
1 parent cdee8bc commit 02ae94e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cappanna-helper-app/src/reducers/orders.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
LOAD_ORDERS_LIST_COMPLETED,
ORDER_CREATED,
ORDER_CHANGED,
ORDER_CLOSED,
ORDER_PRINTED,
TOGGLE_ORDERS_LIST_FILTER_BY_USER,
TOGGLE_ORDERS_LIST_FILTER_BY_STAND,
Expand Down Expand Up @@ -41,7 +42,8 @@ const orders = (state = initialState, action) => {
return { ...state, items: [action.payload].concat(state.items) };

case ORDER_CHANGED:
case ORDER_PRINTED: {
case ORDER_PRINTED:
case ORDER_CLOSED: {
let found = false;

return {
Expand Down

0 comments on commit 02ae94e

Please sign in to comment.