Skip to content

Commit

Permalink
[FE] 디테일 페이지 내 정보없음 처리 안된 벨류 처리 (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
healim01 authored Aug 22, 2024
1 parent 57f3e84 commit 94bddfe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions frontend/src/components/ChecklistDetail/RoomInfoSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ const RoomInfoSection = ({ room, options, checklistId, isLiked }: Props) => {
</S.Row>
</S.GapBox>
<S.Row>
<Utils />
<Utils /> 관리비 포함 항목 :
{includedMaintenances
?.map(id => IncludedMaintenancesData.find(item => item.id === id)?.displayName)
.filter(Boolean)
.join(', ')}{' '}
관리비 포함
.join(', ')}
{!includedMaintenances?.length && formattedUndefined(includedMaintenances?.length, 'string', '')}
</S.Row>
<S.Row>
<Calendar />
Expand All @@ -108,11 +108,13 @@ const RoomInfoSection = ({ room, options, checklistId, isLiked }: Props) => {
</S.GapBox>
<S.Row>
<Options />
{options.map(option => `${option.optionName},`)}
{options.length
? options.map(option => option.optionName).join(', ')
: formattedUndefined(options.length, 'string', '옵션')}
</S.Row>
<S.Row>
<Summary />
{summary}
{formattedUndefined(summary, 'string', '한줄평')}
</S.Row>
<S.Row>
<LocationLineIcon height={20} width={20} />
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/ChecklistDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const ChecklistDetailPage = () => {
<ChecklistAnswerSection categories={checklist?.categories} />
<MemoSection memo={checklist?.room?.memo} />
</Layout>

{isModalOpen && (
<AlertModal
title={
Expand Down

0 comments on commit 94bddfe

Please sign in to comment.