diff --git a/app/utils/api.js b/app/utils/api.js index de68de1..1de1edf 100644 --- a/app/utils/api.js +++ b/app/utils/api.js @@ -361,7 +361,7 @@ export async function editRentProperty(id, data) { currencyId: data.currencyId ?? 1, rentType: data.rentType ?? 0, isSmokeAllow: data.isSmokeAllow ?? false, - specializedFor: data.specializedFor ?? null, + specializedFor: data.specializedFor ?? false, isVisitorAllow: data.isVisitorAllow ?? false, allowedPaymentPeriod: data.allowedPaymentPeriod ?? "", type: data.type ?? 0, @@ -369,7 +369,7 @@ export async function editRentProperty(id, data) { return apiFetch(`/RentProperties/EditRentProperty/${id}`, { method: "PUT", - body, + body: { rentPropertyDto: body }, }); }