From 0706452d5e7639f7d571df8c630609f76be8b603 Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Fri, 17 Jan 2025 23:42:46 +0700 Subject: [PATCH] chore: minor adjustments to home page widgets --- .../src/components/home/widgets/LatestUsedAppsWidget.tsx | 2 +- frontend/src/components/home/widgets/WhatsNewWidget.tsx | 2 +- frontend/src/screens/Home.tsx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/home/widgets/LatestUsedAppsWidget.tsx b/frontend/src/components/home/widgets/LatestUsedAppsWidget.tsx index 1d33d562..d3c77784 100644 --- a/frontend/src/components/home/widgets/LatestUsedAppsWidget.tsx +++ b/frontend/src/components/home/widgets/LatestUsedAppsWidget.tsx @@ -12,7 +12,7 @@ import { useApps } from "src/hooks/useApps"; export function LatestUsedAppsWidget() { const { data: apps } = useApps(); - if (!apps) { + if (!apps?.length) { return null; } diff --git a/frontend/src/components/home/widgets/WhatsNewWidget.tsx b/frontend/src/components/home/widgets/WhatsNewWidget.tsx index 146dc18a..440d7fcb 100644 --- a/frontend/src/components/home/widgets/WhatsNewWidget.tsx +++ b/frontend/src/components/home/widgets/WhatsNewWidget.tsx @@ -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; } diff --git a/frontend/src/screens/Home.tsx b/frontend/src/screens/Home.tsx index e475a637..df19ac0c 100644 --- a/frontend/src/screens/Home.tsx +++ b/frontend/src/screens/Home.tsx @@ -180,11 +180,11 @@ function Home() { {/* RIGHT */}
- - - + + +