From cd926d27b1c408a7bdbbd935c8bdce3e55c93a27 Mon Sep 17 00:00:00 2001 From: Florian de Vries Date: Thu, 3 Oct 2024 16:39:24 +0200 Subject: [PATCH] refactor: use package type from config for pickup --- .../src/composables/events/useResolvedValues.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/delivery-options/src/composables/events/useResolvedValues.ts b/apps/delivery-options/src/composables/events/useResolvedValues.ts index 6eee8c0e..003083f7 100644 --- a/apps/delivery-options/src/composables/events/useResolvedValues.ts +++ b/apps/delivery-options/src/composables/events/useResolvedValues.ts @@ -9,12 +9,13 @@ import { getConfigKey, type CarrierIdentifier, } from '@myparcel-do/shared'; -import {DeliveryTypeName, PackageTypeName, ShipmentOptionName} from '@myparcel/constants'; +import {DeliveryTypeName, ShipmentOptionName} from '@myparcel/constants'; import {useSelectedValues} from '../useSelectedValues'; import {useSelectedPickupLocation} from '../useSelectedPickupLocation'; import {useResolvedDeliveryOptions} from '../useResolvedDeliveryOptions'; import {getResolvedValue, parseJson} from '../../utils'; import {type SelectedDeliveryMomentDelivery} from '../../types'; +import {useConfigStore} from '../../stores'; import {FIELD_DELIVERY_MOMENT, FIELD_SHIPMENT_OPTIONS, HOME_OR_PICKUP_PICKUP} from '../../data'; const DELIVERY_DELIVERY_TYPES = Object.freeze([ @@ -59,13 +60,14 @@ export const useResolvedValues = (): ComputedRef