Skip to content

Commit

Permalink
fix: Clean order when it is placed
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Dec 2, 2021
1 parent c6233b7 commit 67b9387
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/OrderContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ const OrderContainer: FunctionComponent<OrderContainerProps> = (props) => {
},
})
if (!state.order && startRequest.length === state.include?.length) {
const removeOrderPlaced = !!(persistKey && clearWhenPlaced)
getApiOrder({
id: localOrder,
dispatch,
config,
persistKey,
clearWhenPlaced,
clearWhenPlaced: removeOrderPlaced,
deleteLocalOrder,
state,
})
Expand Down

0 comments on commit 67b9387

Please sign in to comment.