diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.jsx b/packages/desktop-client/src/components/transactions/TransactionsTable.jsx index 0615d2cbb3..917fdd5063 100644 --- a/packages/desktop-client/src/components/transactions/TransactionsTable.jsx +++ b/packages/desktop-client/src/components/transactions/TransactionsTable.jsx @@ -66,6 +66,7 @@ import { integerToCurrency, amountToInteger, titleFirst, + amountToCurrency, } from 'loot-core/shared/util'; import { useDispatch } from '../../redux'; @@ -1489,7 +1490,7 @@ const Transaction = memo(function Transaction({ name="debit" exposed={focusedField === 'debit'} focused={focusedField === 'debit'} - value={debit === '' && credit === '' ? '0.00' : debit} + value={debit === '' && credit === '' ? amountToCurrency(0) : debit} valueStyle={valueStyle} textAlign="right" title={debit} @@ -1500,7 +1501,7 @@ const Transaction = memo(function Transaction({ ...amountStyle, }} inputProps={{ - value: debit === '' && credit === '' ? '0.00' : debit, + value: debit === '' && credit === '' ? amountToCurrency(0) : debit, onUpdate: onUpdate.bind(null, 'debit'), }} privacyFilter={{ diff --git a/upcoming-release-notes/4921.md b/upcoming-release-notes/4921.md new file mode 100644 index 0000000000..fa406548f8 --- /dev/null +++ b/upcoming-release-notes/4921.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [alecbakholdin] +--- + +Made default string for transaction editing respect localization of commas and periods