fixing intemittent undefined errors

This commit is contained in:
jackiettran
2025-12-30 18:07:23 -05:00
parent e3acf45ba0
commit 3e31b9d08b
6 changed files with 6 additions and 6 deletions

View File

@@ -148,7 +148,7 @@ const Owning: React.FC = () => {
const fetchOwnerRentals = async () => {
try {
const response = await rentalAPI.getListings();
setOwnerRentals(response.data);
setOwnerRentals(response.data || []);
} catch (err: any) {
console.error("Failed to fetch owner rentals:", err);
}