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 Aug 6, 2024
1 parent 944ab61 commit 41a3c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/(home)/_components/after-login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ 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 !== null
&& <span className="text-[2.5rem] text-text-color !important">{pageInfoItem.number}</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 41a3c1c

Please sign in to comment.