INSR-8882: Move method call after const declaration

This commit is contained in:
Alex Humphries 2026-04-13 12:33:13 -04:00
parent 7e37f4b7fe
commit db4584bc00
2 changed files with 2 additions and 2 deletions

View file

@ -1206,7 +1206,7 @@ describe('OrderConfirmation.vue', () => {
// Assert
expect(mixin.methods.pushEventToGA).toHaveBeenCalledWith('wipers', 'no_purchase', 'none_none', true);
});
});;
});
describe('formatDate', () => {
test.each([
['Wednesday, April 22, 2020', '2020-04-22'],

View file

@ -60,7 +60,6 @@ export default {
const paymentMethod = mapAdyenToIssPaymentMethod(sessionInfo?.paymentMethod);
const paymentMethodForAnalytics = analyticsPaymentTypeMap.get(paymentMethod);
this.pushEventToGA('PIA', 'Pay Today', paymentMethodForAnalytics, true, null, 0);
const amountDue = getCartTotal(store.order);
const ccToken = generateCcToken(sessionInfo);
if (paymentMethod === paymentMethods.AFTERPAY) {
@ -70,6 +69,7 @@ export default {
ccToken.expMonth = "03";
ccToken.expYear = "2030";
}
this.pushEventToGA('PIA', 'Pay Today', paymentMethodForAnalytics, true, null, 0);
store.savePaymentMethodChoice(paymentMethod);
store.updateCreditCardToken(ccToken);