From c4717dbc442b19009ed868f88e6faf006fe060af Mon Sep 17 00:00:00 2001 From: wjames111 Date: Mon, 25 Nov 2024 14:53:59 -0500 Subject: [PATCH] Lint --- .../existingPaymentMethods.component.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/checkout/step-2/existingPaymentMethods/existingPaymentMethods.component.js b/src/app/checkout/step-2/existingPaymentMethods/existingPaymentMethods.component.js index b247cf9e0..4ea2b5cde 100644 --- a/src/app/checkout/step-2/existingPaymentMethods/existingPaymentMethods.component.js +++ b/src/app/checkout/step-2/existingPaymentMethods/existingPaymentMethods.component.js @@ -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 @@ -166,7 +165,7 @@ class ExistingPaymentMethodsController { this.creditCardPaymentForm.securityCode.$setViewValue('') } - this.creditCardPaymentForm.securityCode.$render() + this.creditCardPaymentForm.securityCode.$render() } if (this.selectedPaymentMethod?.['bank-name']) {