web fixes

This commit is contained in:
2026-04-15 00:38:04 -06:00
parent 7d3cc51c8f
commit 023fdf5ee9
6 changed files with 14 additions and 11 deletions

View File

@@ -425,12 +425,12 @@ const canBookAppointments = user?.role === "CUSTOMER" || user?.role === "ADMIN";
})
.then((r) => r.json())
.then(setStores)
.catch(() => {});
.catch(() => setError("Failed to load stores."));
fetch(`${API_BASE}/api/v1/services?size=100`)
.then((r) => r.json())
.then((data) => setServices(data.content ?? []))
.catch(() => {});
.catch(() => setError("Failed to load services."));
fetch(`${API_BASE}/api/v1/pets?size=200&sort=id,asc&status=Available`)
.then((r) => r.json())