mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
🐛 fix(purchase-options): correct customer features mapping
Fix customer features mapping in purchase options store to use feature.key instead of feature.value for both key and value in the customerFeatures record. This ensures consistent feature key mapping across the purchase options flow.
This commit is contained in:
@@ -219,7 +219,7 @@ export class PurchaseOptionsStore extends ComponentStore<PurchaseOptionsState> {
|
||||
const customerFeatures =
|
||||
selectedCustomer?.features.reduce(
|
||||
(acc, feature) => {
|
||||
acc[feature.key] = feature.value;
|
||||
acc[feature.key] = feature.key;
|
||||
return acc;
|
||||
},
|
||||
{} as Record<string, string>,
|
||||
|
||||
Reference in New Issue
Block a user