Skip to content

Commit

Permalink
Fixed conditional statement for rendering of pageInfoItem.number
Browse files Browse the repository at this point in the history
  • Loading branch information
jarellb committed Jul 9, 2024
1 parent fac22c9 commit 397e3e7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ui/src/app/(home)/_components/after-login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,18 @@ const AfterLogin = async () => {
width={pageInfoItem.icon.width}
height={pageInfoItem.icon.height}
className={`mr-5 mb-4 max-w-${pageInfoItem.icon.width} h-auto`}/>
{pageInfoItem.number
&& <span className="text-[2.5rem] text-text-color">{pageInfoItem.number}</span>}
{pageInfoItem.number ?
<span className="text-[2.5rem] text-text-color">
{pageInfoItem.number}
</span> :
pageInfoItem.number === 0 ?
<span className="text-[2.5rem] text-text-color">
{pageInfoItem.number}
</span> :
<span className="text-[2.5rem] text-text-color">
-
</span>
}
</div>
<h2 className="text-2xl text-text-color font-medium mb-2">{pageInfoItem.title}</h2>
<p className="mb-4 text-base font-normal">{pageInfoItem.description}</p>
Expand Down

0 comments on commit 397e3e7

Please sign in to comment.