Skip to content

A local-first personal finance app

Inconsistent date update mobile new transaction (#4910)

Alec Bakholdin0431039eb6e2
diff --git a/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx b/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx
index 43b9d32664..64ee0e6e13 100644
--- a/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx
+++ b/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx
@@ -992,11 +992,11 @@ const TransactionEditInner = memo(function TransactionEditInner({
onFocus={() =>
onRequestActiveEdit(getFieldName(transaction.id, 'date'))
}
- onUpdate={value =>
+ onChange={event =>
onUpdateInner(
transaction,
'date',
- formatDate(parseISO(value), dateFormat),
+ formatDate(parseISO(event.target.value), dateFormat),
)
}
/>
@@ -1029,7 +1029,9 @@ const TransactionEditInner = memo(function TransactionEditInner({
onFocus={() => {
onRequestActiveEdit(getFieldName(transaction.id, 'notes'));
}}
- onUpdate={value => onUpdateInner(transaction, 'notes', value)}
+ onChange={event =>
+ onUpdateInner(transaction, 'notes', event.target.value)
+ }
/>
</View>
diff --git a/upcoming-release-notes/4910.md b/upcoming-release-notes/4910.md
new file mode 100644
index 0000000000..5db77902d3
--- /dev/null
+++ b/upcoming-release-notes/4910.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [alecbakholdin]
+---
+
+Fixed issue with setting date and notes while creating transaction on mobile