From f29cf0a0d2ae25af00735a91386b669f6ab85466 Mon Sep 17 00:00:00 2001 From: Julian Dominguez-Schatz Date: Sun, 20 Oct 2024 15:12:26 -0400 Subject: [PATCH] Missing awaits --- packages/desktop-client/src/components/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop-client/src/components/App.tsx b/packages/desktop-client/src/components/App.tsx index 3557ef3d5b..6e0874b71d 100644 --- a/packages/desktop-client/src/components/App.tsx +++ b/packages/desktop-client/src/components/App.tsx @@ -79,7 +79,7 @@ function AppInner() { loadingText: t('Loading global preferences...'), }), ); - maybeUpdate(() => dispatch(loadGlobalPrefs())); + await maybeUpdate(() => dispatch(loadGlobalPrefs())); // Open the last opened budget, if any dispatch( @@ -89,7 +89,7 @@ function AppInner() { ); const budgetId = await maybeUpdate(() => send('get-last-opened-backup')); if (budgetId) { - maybeUpdate(() => dispatch(loadBudget(budgetId))); + await maybeUpdate(() => dispatch(loadBudget(budgetId))); // Check to see if this file has been remotely deleted (but // don't block on this in case they are offline or something)