Skip to content

A local-first personal finance app

fix: Tracking budget income budget fields missing in mobile view (#5251)

Matiss Janis Aboltinsd9a171b2492e
diff --git a/packages/desktop-client/src/components/mobile/budget/BalanceCell.tsx b/packages/desktop-client/src/components/mobile/budget/BalanceCell.tsx
index 68ce348040..c50af5431f 100644
--- a/packages/desktop-client/src/components/mobile/budget/BalanceCell.tsx
+++ b/packages/desktop-client/src/components/mobile/budget/BalanceCell.tsx
@@ -48,22 +48,22 @@ export function BalanceCell({
});
const goal =
- budgetType === 'report'
+ budgetType === 'tracking'
? trackingBudget.catGoal(category.id)
: envelopeBudget.catGoal(category.id);
const longGoal =
- budgetType === 'report'
+ budgetType === 'tracking'
? trackingBudget.catLongGoal(category.id)
: envelopeBudget.catLongGoal(category.id);
const budgeted =
- budgetType === 'report'
+ budgetType === 'tracking'
? trackingBudget.catBudgeted(category.id)
: envelopeBudget.catBudgeted(category.id);
const carryover =
- budgetType === 'report'
+ budgetType === 'tracking'
? trackingBudget.catCarryover(category.id)
: envelopeBudget.catCarryover(category.id);
diff --git a/packages/desktop-client/src/components/mobile/budget/IncomeCategoryListItem.tsx b/packages/desktop-client/src/components/mobile/budget/IncomeCategoryListItem.tsx
index fa50c6ec63..fa8486b7fa 100644
--- a/packages/desktop-client/src/components/mobile/budget/IncomeCategoryListItem.tsx
+++ b/packages/desktop-client/src/components/mobile/budget/IncomeCategoryListItem.tsx
@@ -126,7 +126,7 @@ function IncomeCategoryCells({
alignItems: 'center',
}}
>
- {budgetType === 'report' && (
+ {budgetType === 'tracking' && (
<View
style={{
width: columnWidth,
@@ -143,6 +143,7 @@ function IncomeCategoryCells({
/>
</View>
)}
+
<View
style={{
width: columnWidth,
diff --git a/upcoming-release-notes/5251.md b/upcoming-release-notes/5251.md
new file mode 100644
index 0000000000..18764f243c
--- /dev/null
+++ b/upcoming-release-notes/5251.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MatissJanis]
+---
+
+Fix tracking budget income budget fields missing in mobile view.