Skip to content

Commit

Permalink
Fix loadBudget
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 20, 2025
1 parent 2338fd9 commit c227457
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function AppInner() {
);
const budgetId = await send('get-last-opened-backup');
if (budgetId) {
await dispatch(loadBudget(budgetId));
await dispatch(loadBudget({ id: 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
2 changes: 1 addition & 1 deletion packages/loot-core/src/client/budgets/budgetsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export const downloadBudget = createAppAsyncThunk(
await Promise.all([
dispatch(loadGlobalPrefs()),
dispatch(loadAllFiles()),
dispatch(loadBudget(id)),
dispatch(loadBudget({ id })),
]);
await dispatch(setAppState({ loadingText: null }));
}
Expand Down

0 comments on commit c227457

Please sign in to comment.