Skip to content

Commit

Permalink
fix: fix clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
forbesus committed Oct 1, 2024
1 parent b63b69a commit 2f9b8de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/stats-web/src/app/(home)/DashboardContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const DashboardContainer: React.FunctionComponent = () => {

<div className="mb-8">
<p className="text-italic text-sm italic text-muted-foreground">
Last updated: {dashboardData?.now?.date !== undefined && <FormattedDate value={dashboardData.now.date} />} {dashboardData?.now?.date !== undefined && <FormattedTime value={dashboardData.now.date} />}
Last updated: {!!dashboardData?.now?.date && <FormattedDate value={dashboardData.now.date} />} {!!dashboardData?.now?.date && <FormattedTime value={dashboardData.now.date} />}
</p>
</div>

Expand Down

0 comments on commit 2f9b8de

Please sign in to comment.