From daa91697b1b7fd013f62d37fc1e2b23b939704d3 Mon Sep 17 00:00:00 2001 From: canove Date: Mon, 28 Sep 2020 09:44:48 -0300 Subject: [PATCH] fix: new tickets not appearing in queue --- frontend/src/components/TicketsList/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/TicketsList/index.js b/frontend/src/components/TicketsList/index.js index 888f3f7..5ee0ae0 100644 --- a/frontend/src/components/TicketsList/index.js +++ b/frontend/src/components/TicketsList/index.js @@ -120,6 +120,8 @@ const reducer = (state, action) => { if (ticketIndex !== -1) { state[ticketIndex] = ticket; state.unshift(state.splice(ticketIndex, 1)[0]); + } else { + state.unshift(ticket); } return [...state];