Skip to content

Commit

Permalink
chore: minor adjustments to home page widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jan 17, 2025
1 parent 96710cc commit 0706452
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useApps } from "src/hooks/useApps";

export function LatestUsedAppsWidget() {
const { data: apps } = useApps();
if (!apps) {
if (!apps?.length) {
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/home/widgets/WhatsNewWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function WhatsNewWidget() {
const { data: info } = useInfo();
const { data: albyInfo } = useAlbyInfo();

if (!info || !albyInfo) {
if (!info || !albyInfo || !albyInfo.hub.latestReleaseNotes) {
return null;
}

Expand Down
6 changes: 3 additions & 3 deletions frontend/src/screens/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ function Home() {

{/* RIGHT */}
<div className="grid gap-5">
<BlockHeightWidget />
<NodeStatusWidget />
<OnchainFeesWidget />
<LatestUsedAppsWidget />
<AppOfTheDayWidget />
<NodeStatusWidget />
<BlockHeightWidget />
<OnchainFeesWidget />
</div>
</div>
</>
Expand Down

0 comments on commit 0706452

Please sign in to comment.