Checkout's payment method front end rendering order function changed from unshift to push

This commit is contained in:
Prashant Singh 2019-03-01 18:17:21 +05:30
parent bce57ed750
commit 9df1c291a6
1 changed files with 3 additions and 2 deletions

View File

@ -403,7 +403,6 @@
var paymentTemplateRenderFns = [];
Vue.component('payment-section', {
inject: ['$validator'],
data: () => ({
@ -420,7 +419,7 @@
this.templateRender = paymentHtml.render;
for (var i in paymentHtml.staticRenderFns) {
paymentTemplateRenderFns.unshift(paymentHtml.staticRenderFns[i]);
paymentTemplateRenderFns.push(paymentHtml.staticRenderFns[i]);
}
eventBus.$emit('after-checkout-payment-section-added');
@ -437,6 +436,8 @@
methods: {
methodSelected () {
this.$emit('onPaymentMethodSelected', this.payment)
eventBus.$emit('after-checkout-payment-method-selected');
}
}
})