Skip to content

Commit

Permalink
fix: Remove _create_subscription after placing the order.
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Aug 8, 2023
1 parent ea76278 commit d0930bf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/react-components/src/reducers/PlaceOrderReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,6 @@ export async function setPlaceOrder({
})
if (setOrder) setOrder(orderUpdated)
if (setOrderErrors) setOrderErrors([])
if (hasSubscriptions(orderUpdated)) {
await sdk.orders.update({
id: order.id,
_create_subscriptions: true
})
}
return {
placed: true,
order: orderUpdated
Expand Down

0 comments on commit d0930bf

Please sign in to comment.