From 688bfe59e8c2f0e79ca6807284b3b334c65cf269 Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez <joeljeremy.marquez@gmail.com> Date: Thu, 2 May 2024 10:34:20 -0700 Subject: [PATCH] Fix management app flashing on page init (#2692) * Fix management app flashing on init * Release notes --- packages/desktop-client/src/components/App.tsx | 11 ++++++----- upcoming-release-notes/2692.md | 6 ++++++ 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 upcoming-release-notes/2692.md diff --git a/packages/desktop-client/src/components/App.tsx b/packages/desktop-client/src/components/App.tsx index fa06630dd..6135c28b9 100644 --- a/packages/desktop-client/src/components/App.tsx +++ b/packages/desktop-client/src/components/App.tsx @@ -116,11 +116,12 @@ function AppInner({ budgetId, cloudFileId }: AppInnerProps) { {(initializing || !budgetId) && ( <AppBackground initializing={initializing} loadingText={loadingText} /> )} - {budgetId ? ( - <FinancesApp /> - ) : ( - <ManagementApp isLoading={loadingText != null} /> - )} + {!initializing && + (budgetId ? ( + <FinancesApp /> + ) : ( + <ManagementApp isLoading={loadingText != null} /> + ))} <UpdateNotification /> <MobileWebMessage /> diff --git a/upcoming-release-notes/2692.md b/upcoming-release-notes/2692.md new file mode 100644 index 000000000..9803d8ec1 --- /dev/null +++ b/upcoming-release-notes/2692.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [joel-jeremy] +--- + +Fix budget list / management app flashing on page init. -- GitLab