diff --git a/pages/liked/index.tsx b/pages/liked/index.tsx index 7c67069..034180d 100644 --- a/pages/liked/index.tsx +++ b/pages/liked/index.tsx @@ -66,8 +66,8 @@ export default function Liked({ roomInfo }: MyPostingProps) { if (result?.error) { setRooms([]); } else { - setRooms((prevRooms) => [...prevRooms, ...(result?.content || [])]); - setTotalElements(result?.totalElements || 0); + setRooms((prevRooms) => [...prevRooms, ...(result?.content || [])]); + setTotalElements(result?.totalElements || 0); } // if (target?.current) { // const observer = new IntersectionObserver(callback, options); @@ -129,7 +129,7 @@ export default function Liked({ roomInfo }: MyPostingProps) { const getChildData = async (childData: Record) => { makeFilters(childData); setPage(0); - //setRooms([]); + // setRooms([]); }; const openFilterPopup = () => { openModal({ @@ -207,7 +207,7 @@ export default function Liked({ roomInfo }: MyPostingProps) {
handleCardClick(room.id)} isLikedRooms />
- ))} + ))}
diff --git a/public/icons/def_img.svg b/public/icons/def_img.svg new file mode 100644 index 0000000..8780dcf --- /dev/null +++ b/public/icons/def_img.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + +