Fix: Correct shipment resolving
This commit is contained in:
@@ -192,6 +192,16 @@ export default class extends Controller {
|
||||
detail: { html: data.summaryHtml },
|
||||
}))
|
||||
}
|
||||
|
||||
// bbk-payment is a sibling controller (both sit on
|
||||
// .bbk-checkout-main), not a target of this one — dispatched as an
|
||||
// event rather than reached into directly, same shape as
|
||||
// bbk-cart:changed above.
|
||||
if (data.paymentMethodsHtml != null) {
|
||||
window.dispatchEvent(new CustomEvent('bbk-checkout:payment-methods-changed', {
|
||||
detail: { html: data.paymentMethodsHtml },
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
applyErrors(errors) {
|
||||
|
||||
Reference in New Issue
Block a user