#3554 AGB ist Akzeptiert wenn Dialog mit Ja beantwortet wird

This commit is contained in:
Lorenz Hilpert
2022-10-21 14:26:53 +02:00
parent 50caf9811d
commit b847ca6b3e

View File

@@ -20,8 +20,9 @@ export class CreateKubiCustomerCommand extends ActionHandler<Result<CustomerInfo
const fd = mapCustomerInfoDtoToCustomerCreateFormData(customerInfo);
formData = encodeFormData({
...fd,
agb: false,
agb: true,
});
if (customerInfo.features) {
if (customerInfo.features.some((f) => f.key === 'store')) {
customerType = 'store';