From 9554e236d52389b3bd0d15ebc5b7e2684c3a1c03 Mon Sep 17 00:00:00 2001 From: rbedeoan-plenty Date: Thu, 5 Oct 2023 17:53:54 +0300 Subject: [PATCH 1/2] fix: import lodash --- apps/web/pages/checkout.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/checkout.vue b/apps/web/pages/checkout.vue index dd1d06d5f..b6953d6d9 100644 --- a/apps/web/pages/checkout.vue +++ b/apps/web/pages/checkout.vue @@ -153,9 +153,9 @@ import { AddressType } from '@plentymarkets/shop-api'; import { shippingProviderGetters, paymentProviderGetters } from '@plentymarkets/shop-sdk'; import { SfButton, SfLink, SfCheckbox, SfLoaderCircular } from '@storefront-ui/vue'; -import { keyBy } from 'lodash'; import PayPalExpressButton from '~/components/PayPal/PayPalExpressButton.vue'; import { PayPalCreditCardPaymentKey, PayPalPaymentKey } from '~/composables/usePayPal/types'; +import _ from 'lodash'; definePageMeta({ layoutName: 'checkout', @@ -275,7 +275,7 @@ const order = async () => { if (!validateAddresses() || !validateTerms()) { return; } - const paymentMethodsById = keyBy(paymentMethods.value.list, 'id'); + const paymentMethodsById = _.keyBy(paymentMethods.value.list, 'id'); if (paymentMethodsById[selectedPaymentId.value].key === 'plentyPayPal') { paypalCardDialog.value = true; From 2fd11392602a2fe0626fe5bfa94345dfe856aa4d Mon Sep 17 00:00:00 2001 From: rbedeoan-plenty Date: Thu, 5 Oct 2023 18:00:28 +0300 Subject: [PATCH 2/2] fix: lint --- apps/web/pages/checkout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/pages/checkout.vue b/apps/web/pages/checkout.vue index b6953d6d9..8ba3c2737 100644 --- a/apps/web/pages/checkout.vue +++ b/apps/web/pages/checkout.vue @@ -153,9 +153,9 @@ import { AddressType } from '@plentymarkets/shop-api'; import { shippingProviderGetters, paymentProviderGetters } from '@plentymarkets/shop-sdk'; import { SfButton, SfLink, SfCheckbox, SfLoaderCircular } from '@storefront-ui/vue'; +import _ from 'lodash'; import PayPalExpressButton from '~/components/PayPal/PayPalExpressButton.vue'; import { PayPalCreditCardPaymentKey, PayPalPaymentKey } from '~/composables/usePayPal/types'; -import _ from 'lodash'; definePageMeta({ layoutName: 'checkout',