INSR-8882: Move method call after const declaration
This commit is contained in:
parent
7e37f4b7fe
commit
db4584bc00
2 changed files with 2 additions and 2 deletions
|
|
@ -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'],
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue