Skip to content

Commit

Permalink
Merge pull request #176 from plentymarkets/fix-lodash-production-fix
Browse files Browse the repository at this point in the history
fix: import lodash
  • Loading branch information
rbedeoan-plenty authored Oct 5, 2023
2 parents 899ac76 + 2fd1139 commit 7abbbe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/pages/checkout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
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 _ from 'lodash';
import PayPalExpressButton from '~/components/PayPal/PayPalExpressButton.vue';
import { PayPalCreditCardPaymentKey, PayPalPaymentKey } from '~/composables/usePayPal/types';
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7abbbe6

Please sign in to comment.