Skip to content

Commit 0aeea2d

Browse files
authored
[2.x] Use proper response data for orderId in checkout-payment-saved event
1 parent e95528f commit 0aeea2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/components/Checkout/Checkout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ export default {
231231
},
232232
})
233233
}
234-
// response.data = orderId
234+
// response = orderId
235235
236236
this.$root.$emit('checkout-payment-saved', {
237237
order: {
238-
id: response?.data,
238+
id: response,
239239
payment_method_code: this.checkout.payment_method,
240240
},
241241
})

0 commit comments

Comments
 (0)