Skip to content

Commit

Permalink
Default option on return (#1142)
Browse files Browse the repository at this point in the history
Co-authored-by: elsiosanchez <[email protected]>
  • Loading branch information
elsiosanchez and elsiosanchez authored Aug 31, 2021
1 parent eda1754 commit e95d417
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ export default {
container = 'MobilePayment'
break
case 'A':
case 'D':
container = 'ACH'
break
case 'X':
Expand Down Expand Up @@ -435,12 +436,18 @@ export default {
value: this.change
})
this.selectionTypeRefund = {}
if (value === 1 && !this.isEmptyValue(this.paymentTypeListRefund)) {
this.selectPayment(this.paymentTypeListRefund[0])
}
if (value === 3 && !this.isEmptyValue(this.paymentTypeList)) {
this.selectPayment(this.paymentTypeList[0])
}
}
},
mounted() {
this.selectionTypeRefund = {}
if (this.paymentTypeListRefund.length === 1) {
this.selectPayment(this.paymentTypeListRefund[this.paymentTypeListRefund.length - 1])
this.selectPayment(this.paymentTypeListRefund[0])
}
},
methods: {
Expand Down

0 comments on commit e95d417

Please sign in to comment.