Skip to content

A local-first personal finance app

[AI] Keep mobile transaction amount field at a consistent height when empty (#7638)

Matiss Janis Aboltins598e3ec9d8b0
diff --git a/packages/desktop-client/src/components/mobile/transactions/FocusableAmountInput.tsx b/packages/desktop-client/src/components/mobile/transactions/FocusableAmountInput.tsx
index 2493ed6afc..bc0620aacd 100644
--- a/packages/desktop-client/src/components/mobile/transactions/FocusableAmountInput.tsx
+++ b/packages/desktop-client/src/components/mobile/transactions/FocusableAmountInput.tsx
@@ -160,7 +160,7 @@ const AmountInput = memo(function AmountInput({
}}
data-testid="amount-input-text"
>
- {editing ? text : amountToCurrency(value)}
+ {editing ? text || amountToCurrency(0) : amountToCurrency(value)}
</Text>
</View>
);
diff --git a/upcoming-release-notes/7638.md b/upcoming-release-notes/7638.md
new file mode 100644
index 0000000000..7fb3267f57
--- /dev/null
+++ b/upcoming-release-notes/7638.md
@@ -0,0 +1,6 @@
+---
+category: Enhancements
+authors: [MatissJanis]
+---
+
+Ensure mobile transaction amount field maintains consistent height when empty.