improvement: moved user data from localstorage to context

This commit is contained in:
canove
2021-01-13 08:08:25 -03:00
parent 2bec877e4f
commit 3aa287d394
23 changed files with 231 additions and 134 deletions

View File

@@ -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);