fixed getSaleProperiesById and make login type is email
All checks were successful
Build frontend / build (push) Successful in 1m46s

This commit is contained in:
hamzaobed7
2026-08-11 16:04:09 +03:00
parent 4924e7c2f3
commit 00dde588cb
10 changed files with 421 additions and 394 deletions

View File

@ -192,7 +192,7 @@ export async function getSaleProperties() {
}
export async function getSaleProperty(id) {
const items = await apiFetch("/SaleProperties/GetSaleProperties");
const items = await apiFetch(`/SaleProperties/GetSalePropertyById/${id}`);
if (!Array.isArray(items)) return items;
return items.find((p) => p.id == id) || items[0];
}