From 15fa12ebd55c08efbd0b145c8810d00878b6524a Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Wed, 24 Jul 2024 10:24:36 +0200 Subject: [PATCH] fix(pickup): disable load more for postnl myparcel be --- libs/shared/src/config/getSendMyParcelConfig.ts | 9 ++------- .../utils/__snapshots__/getPlatformConfig.spec.ts.snap | 1 - 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/libs/shared/src/config/getSendMyParcelConfig.ts b/libs/shared/src/config/getSendMyParcelConfig.ts index 1ba92aa2..43caa52d 100644 --- a/libs/shared/src/config/getSendMyParcelConfig.ts +++ b/libs/shared/src/config/getSendMyParcelConfig.ts @@ -28,7 +28,7 @@ import { } from '@myparcel/constants/countries'; import {CarrierName, DeliveryTypeName, PackageTypeName, ShipmentOptionName} from '@myparcel/constants'; import {type PlatformConfiguration} from '../types'; -import {AddressField, CarrierSetting, SubscriptionType, CustomDeliveryType, ConfigSetting} from '../data'; +import {AddressField, CarrierSetting, SubscriptionType, CustomDeliveryType} from '../data'; // eslint-disable-next-line max-lines-per-function export const getSendMyParcelConfig = (): PlatformConfiguration => ({ @@ -53,12 +53,7 @@ export const getSendMyParcelConfig = (): PlatformConfiguration => ({ deliveryCountries: [BELGIUM, NETHERLANDS], pickupCountries: [BELGIUM, NETHERLANDS], shipmentOptions: [ShipmentOptionName.OnlyRecipient, ShipmentOptionName.Signature], - features: [ - CarrierSetting.DeliveryDaysWindow, - CarrierSetting.DropOffDays, - CarrierSetting.DropOffDelay, - ConfigSetting.PickupMapAllowLoadMore, - ], + features: [CarrierSetting.DeliveryDaysWindow, CarrierSetting.DropOffDays, CarrierSetting.DropOffDelay], fakeDelivery: true, }, { diff --git a/libs/shared/src/utils/__snapshots__/getPlatformConfig.spec.ts.snap b/libs/shared/src/utils/__snapshots__/getPlatformConfig.spec.ts.snap index e64e246a..1506f0b2 100644 --- a/libs/shared/src/utils/__snapshots__/getPlatformConfig.spec.ts.snap +++ b/libs/shared/src/utils/__snapshots__/getPlatformConfig.spec.ts.snap @@ -53,7 +53,6 @@ exports[`getPlatformConfig > gets config for platform belgie 1`] = ` "deliveryDaysWindow", "dropOffDays", "dropOffDelay", - "pickupMapAllowLoadMore", ], "name": "postnl", "packageTypes": [