diff --git a/apps/dashboard/src/pages/FrontDesk.tsx b/apps/dashboard/src/pages/FrontDesk.tsx index 2faddc0..14f939a 100644 --- a/apps/dashboard/src/pages/FrontDesk.tsx +++ b/apps/dashboard/src/pages/FrontDesk.tsx @@ -1249,15 +1249,17 @@ export default function FrontDesk() { className="w-full border border-gray-200 rounded-xl px-3 py-2 text-xs focus:outline-none focus:border-telivity-teal focus:ring-2 focus:ring-telivity-teal/10 transition-all bg-white" > - {roomList.map((room) => ( - - ))} + {roomList + .filter((room) => !checkInModal.roomTypeId || !room.roomTypeId || room.roomTypeId === checkInModal.roomTypeId) + .map((room) => ( + + ))} @@ -1431,11 +1433,14 @@ export default function FrontDesk() { className="w-full border border-gray-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-telivity-teal" > - {roomList.map((room) => ( - - ))} + {roomList + .filter((room) => room.id !== moveModal.roomId) + .filter((room) => !moveModal.roomTypeId || !room.roomTypeId || room.roomTypeId === moveModal.roomTypeId) + .map((room) => ( + + ))}