From 2cf8ca3c659da7ccff4afc25803a91babb3b0465 Mon Sep 17 00:00:00 2001 From: Jarek Samic Date: Mon, 7 Aug 2023 17:44:36 -0400 Subject: [PATCH 1/2] Fix mobile account view --- .../desktop-client/src/components/accounts/MobileAccount.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop-client/src/components/accounts/MobileAccount.js b/packages/desktop-client/src/components/accounts/MobileAccount.js index ebf5c73f615..720596e54cc 100644 --- a/packages/desktop-client/src/components/accounts/MobileAccount.js +++ b/packages/desktop-client/src/components/accounts/MobileAccount.js @@ -150,7 +150,7 @@ export default function Account(props) { }, []); // Load categories if necessary. - useCategories(); + const categories = useCategories(); const updateSearchQuery = debounce(() => { if (searchText === '' && currentQuery) { @@ -253,7 +253,7 @@ export default function Account(props) { key={numberFormat + hideFraction} account={account} accounts={accounts} - categories={state.categories} + categories={categories.list} payees={state.payees} transactions={transactions} prependTransactions={prependTransactions || []} From 4d80673950092ea7bb9a2ab77ab59be12a6ccd30 Mon Sep 17 00:00:00 2001 From: Jarek Samic Date: Mon, 7 Aug 2023 17:47:02 -0400 Subject: [PATCH 2/2] Add changelog entry --- upcoming-release-notes/1486.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 upcoming-release-notes/1486.md diff --git a/upcoming-release-notes/1486.md b/upcoming-release-notes/1486.md new file mode 100644 index 00000000000..d724fa89497 --- /dev/null +++ b/upcoming-release-notes/1486.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [Cldfire] +--- + +Fix mobile account view