Skip to content

Commit

Permalink
pop operation from queue on error
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasecdb committed Feb 19, 2020
1 parent 14340fa commit 4eea16e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions react/OrderItems.tsx
Expand Up @@ -141,6 +141,7 @@ const useEnqueueTask = () => {
}
},
(error: any) => {
popLocalOrderQueue()
if (!error || error.code !== 'TASK_CANCELLED') {
throw error
}
Expand Down

0 comments on commit 4eea16e

Please sign in to comment.