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 5e03eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/(home)/_components/after-login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ 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
{pageInfoItem.number !== null
&& <span className="text-[2.5rem] text-text-color">{pageInfoItem.number}</span>}
</div>
<h2 className="text-2xl text-text-color font-medium mb-2">{pageInfoItem.title}</h2>
Expand Down

0 comments on commit 5e03eda

Please sign in to comment.