diff --git a/src/components/recruitments/RecruitmentsCard.tsx b/src/components/recruitments/RecruitmentsCard.tsx index 3e5f391..9f7e46f 100644 --- a/src/components/recruitments/RecruitmentsCard.tsx +++ b/src/components/recruitments/RecruitmentsCard.tsx @@ -25,17 +25,19 @@ export default function RecruitmentsCard({ maxLength = 12 }: PropsType) { return (
{isLoading && } - {recruitmentsList?.recruitments.length === 0 ? ( -

⚠ 아직 모집의뢰서가 없습니다.

- ) : - recruitmentsList?.recruitments.filter((_, idx) => idx < maxLength).map((item) => { - return ; - })} + {recruitmentsList?.recruitments.length === 0 ? ( +

⚠ 아직 모집의뢰서가 없습니다.

+ ) : ( + recruitmentsList?.recruitments + .filter((_, idx) => idx < maxLength) + .map((item) => { + return ; + }) + )}
); } - function RecruitmentsItem({ company_profile_url, company_name, @@ -51,7 +53,7 @@ function RecruitmentsItem({ return ( -
+
); -} \ No newline at end of file +}