Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wjames111 committed Nov 25, 2024
1 parent aeccc63 commit c4717db
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,9 @@ class ExistingPaymentMethodsController {
switchPayment () {
this.onPaymentChange({ selectedPaymentMethod: this.selectedPaymentMethod })
if (this.selectedPaymentMethod?.['card-type'] && this.creditCardPaymentForm?.securityCode) {

const selectedUri = this.selectedPaymentMethod.self.uri
const selectedUri = this.selectedPaymentMethod.self.uri
const storage = JSON.parse(this.sessionStorage.getItem('storedCvvs'))
const getSelectedCvv = storage ? storage[Object.keys(storage).filter((item) => item === selectedUri)] : false;
const getSelectedCvv = storage ? storage[Object.keys(storage).filter((item) => item === selectedUri)] : false

if (getSelectedCvv) {
// Set CVV to new credit card CVV
Expand All @@ -166,7 +165,7 @@ class ExistingPaymentMethodsController {
this.creditCardPaymentForm.securityCode.$setViewValue('')
}

this.creditCardPaymentForm.securityCode.$render()
this.creditCardPaymentForm.securityCode.$render()
}

if (this.selectedPaymentMethod?.['bank-name']) {
Expand Down

0 comments on commit c4717db

Please sign in to comment.