Skip to content

Commit

Permalink
Fix bug with displaying children's ages
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminJohnson2204 committed Feb 26, 2024
1 parent 61d4c9b commit e20c4ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ export const PersonalInformation = ({ vsr }: PersonalInformationProps) => {
<SingleDetail
className={styles.second}
title="Age(s)"
value={vsr.agesOfBoys && vsr.agesOfBoys.length > 0 ? vsr.agesOfBoys : "N/A"}
value={vsr.agesOfBoys && vsr.agesOfBoys.length > 0 ? vsr.agesOfBoys.join(", ") : "N/A"}
/>
</div>
<div className={styles.row}>
<SingleDetail title="Number of girl(s)" value={vsr.agesOfGirls?.length ?? 0} />
<SingleDetail
className={styles.second}
title="Age(s)"
value={vsr.agesOfGirls && vsr.agesOfGirls.length > 0 ? vsr.agesOfGirls : "N/A"}
value={vsr.agesOfGirls && vsr.agesOfGirls.length > 0 ? vsr.agesOfGirls.join(", ") : "N/A"}
/>
</div>
<div className={styles.row}>
Expand Down

0 comments on commit e20c4ec

Please sign in to comment.