Skip to content

Commit

Permalink
Missing awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdoming committed Oct 20, 2024
1 parent a3904d0 commit f29cf0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/desktop-client/src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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)
Expand Down

0 comments on commit f29cf0a

Please sign in to comment.