mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
committed by
Lorenz Hilpert
parent
4d42c4ea45
commit
f0a0189523
@@ -112,8 +112,10 @@ export function getPurchaseOptionsInAvailabilities(state: PurchaseOptionsState):
|
||||
purchaseOptions.push('delivery');
|
||||
}
|
||||
|
||||
// if remove 'dig-delivery' and 'b2b-delivery'
|
||||
purchaseOptions = purchaseOptions.filter((purchaseOption) => purchaseOption !== 'dig-delivery' && purchaseOption !== 'b2b-delivery');
|
||||
// if remove 'dig-delivery' and 'b2b-delivery' and 'catalog' as 'catalog' is not a purchase option but is needed for other data (Needed for #4813 and Bugfix for #4710)
|
||||
purchaseOptions = purchaseOptions.filter(
|
||||
(purchaseOption) => purchaseOption !== 'dig-delivery' && purchaseOption !== 'b2b-delivery' && purchaseOption !== 'catalog',
|
||||
);
|
||||
|
||||
return purchaseOptions.sort((a, b) => PURCHASE_OPTIONS.indexOf(a) - PURCHASE_OPTIONS.indexOf(b));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user