mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 20:59:16 +00:00
improvement: moved user data from localstorage to context
This commit is contained in:
@@ -74,7 +74,6 @@ const reducer = (state, action) => {
|
||||
|
||||
if (action.type === "DELETE_QUEUE") {
|
||||
const queueId = action.payload;
|
||||
console.log("QUEUEID", queueId);
|
||||
const queueIndex = state.findIndex(q => q.id === queueId);
|
||||
if (queueIndex !== -1) {
|
||||
state.splice(queueIndex, 1);
|
||||
|
||||
Reference in New Issue
Block a user