🐛 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:
Lorenz Hilpert
2025-10-23 15:16:13 +02:00
parent 973ef5d3e8
commit cf1f491c1c

View File

@@ -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>,