Skip to content

Commit

Permalink
fix(ui): NaN text on population year dropdowns on onboarding page
Browse files Browse the repository at this point in the history
  • Loading branch information
lemilonkh committed Apr 24, 2024
1 parent bf53e69 commit 77eabdc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/src/app/[lng]/onboarding/setup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ function SetupStep({
))}
</Select>
<InputRightElement>
{year && (
{!!year && (
<CheckIcon
color="semantic.success"
boxSize={4}
Expand Down Expand Up @@ -424,14 +424,14 @@ function SetupStep({
))}
</Select>
<InputRightElement>
{cityPopulationYear && (
{cityPopulationYear ? (
<CheckIcon
color="semantic.success"
boxSize={4}
mt={2}
mr={10}
/>
)}
) : null}
</InputRightElement>
</InputGroup>
<FormErrorMessage
Expand Down Expand Up @@ -482,14 +482,14 @@ function SetupStep({
))}
</Select>
<InputRightElement>
{regionPopulationYear && (
{regionPopulationYear ? (
<CheckIcon
color="semantic.success"
boxSize={4}
mt={2}
mr={10}
/>
)}
) : null}
</InputRightElement>
</InputGroup>
<FormErrorMessage
Expand Down Expand Up @@ -540,14 +540,14 @@ function SetupStep({
))}
</Select>
<InputRightElement>
{countryPopulationYear && (
{countryPopulationYear ? (
<CheckIcon
color="semantic.success"
boxSize={4}
mt={2}
mr={10}
/>
)}
) : null}
</InputRightElement>
</InputGroup>
<FormErrorMessage
Expand Down

0 comments on commit 77eabdc

Please sign in to comment.