chore: code cleanup

This commit is contained in:
canove
2021-01-11 08:17:49 -03:00
parent 90b438025b
commit 0a4d5a081e

View File

@@ -100,8 +100,6 @@ const reducer = (state, action) => {
if (action.type === "UPDATE_TICKET") {
const ticket = action.payload;
console.log("TICKET", ticket);
const ticketIndex = state.findIndex(t => t.id === ticket.id);
if (ticketIndex !== -1) {
state[ticketIndex] = ticket;