Skip to content

Commit

Permalink
chore: fix lodash import
Browse files Browse the repository at this point in the history
  • Loading branch information
maxiroellplenty committed Sep 23, 2024
1 parent c764651 commit 8678ef6
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 @@ -101,7 +101,7 @@

<script setup lang="ts">
import { 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';
import { AddressType, paymentProviderGetters, cartGetters } from '@plentymarkets/shop-api';
Expand Down Expand Up @@ -205,7 +205,7 @@ const handlePayPalExpress = () => {
const order = async () => {
if (!readyToBuy()) return;
const paymentMethodsById = keyBy(paymentMethods.value.list, 'id');
const paymentMethodsById = _.keyBy(paymentMethods.value.list, 'id');
paymentMethodsById[selectedPaymentId.value].key === 'plentyPayPal'
? (paypalCardDialog.value = true)
Expand Down

0 comments on commit 8678ef6

Please sign in to comment.