This commit is contained in:
@ -687,9 +687,6 @@ const handleMapClick = async (coords) => {
|
||||
rentType: rentTypeMap[formData.offerType] ?? RentType.MONTHLY,
|
||||
type: formData.furnished ? RentPropertyType.FURNISHED : RentPropertyType.UNFURNISHED,
|
||||
allowedPaymentPeriod: formData.allowedPaymentPeriod || '',
|
||||
isSmokeAllow: null,
|
||||
specializedFor: null,
|
||||
isVisitorAllow: null,
|
||||
};
|
||||
console.log('[AddProperty] Rent payload:', JSON.stringify(payload, null, 2));
|
||||
const res = await addRentProperty(payload);
|
||||
|
||||
@ -1309,9 +1309,6 @@ export default function OwnerPropertiesPage() {
|
||||
rentType: rentTypeMap[updatedProperty.rentType] ?? 0,
|
||||
type: updatedProperty.furnished ? 0 : 1,
|
||||
allowedPaymentPeriod: "",
|
||||
isSmokeAllow: null,
|
||||
specializedFor: null,
|
||||
isVisitorAllow: null,
|
||||
};
|
||||
|
||||
await editRentProperty(updatedProperty.id, payload);
|
||||
|
||||
Reference in New Issue
Block a user