From c4e503989ae5931578146bfe587afd6cbb671694 Mon Sep 17 00:00:00 2001 From: Tero Halla-aho Date: Sat, 6 Dec 2025 23:24:56 +0200 Subject: [PATCH] Fix build errors for updated listing fields and admin effect deps --- app/admin/users/page.tsx | 2 +- app/api/listings/route.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/users/page.tsx b/app/admin/users/page.tsx index 6b532be..9c04cea 100644 --- a/app/admin/users/page.tsx +++ b/app/admin/users/page.tsx @@ -50,7 +50,7 @@ export default function AdminUsersPage() { } }) .catch(() => setError(t('adminRequired'))); - }, []); + }, [t]); async function setUserRole(userId: string, role: string) { setMessage(null); diff --git a/app/api/listings/route.ts b/app/api/listings/route.ts index 81d07ce..769ccf6 100644 --- a/app/api/listings/route.ts +++ b/app/api/listings/route.ts @@ -163,7 +163,7 @@ export async function GET(req: Request) { hasBarbecue: listing.hasBarbecue, hasMicrowave: listing.hasMicrowave, hasFreeParking: listing.hasFreeParking, - evCharging: listing.evCharging, + evChargingAvailable: listing.evChargingAvailable, maxGuests: listing.maxGuests, bedrooms: listing.bedrooms, beds: listing.beds,