Always set piaType unless its AfterPay

Changing payment methods after the first on payment.vue is not setting the new payment type.  A long ago bug fix for AfterPay is the issue, and we're good to still not allow the payment type be set if its already set to AfterPay since closing that modal navigates back to payment-method.
This commit is contained in:
Matt Sykes 2026-02-04 10:32:40 -05:00
parent 7eef34f6a9
commit 349c032815

View file

@ -748,7 +748,8 @@ export default {
// if the payment method is not set yet, then set it based on what HOP sends us
if (
store.getters.order.payment.piaType == paymentMethods.PAY_NOW ||
store.getters.order.payment.piaType == paymentMethods.NONE
store.getters.order.payment.piaType == paymentMethods.NONE ||
store.getters.order.payment.piaType != paymentMethods.AFTERPAY
) {
console.log(new Date() + " UPDATE PaymentMethod from HOP:" + paymentMethod);
this.dispatchStoreAction(