This commit is contained in:
youngcw
2025-07-02 12:07:49 -07:00
committed by GitHub
parent 1f828b6562
commit 4aea6f4898
2 changed files with 7 additions and 6 deletions

View File

@@ -18,11 +18,7 @@ import { View } from '@actual-app/components/view';
import { css, cx } from '@emotion/css';
import { evalArithmetic } from 'loot-core/shared/arithmetic';
import {
amountToInteger,
appendDecimals,
reapplyThousandSeparators,
} from 'loot-core/shared/util';
import { amountToInteger, appendDecimals } from 'loot-core/shared/util';
import { useFormat } from '@desktop-client/hooks/useFormat';
import { useMergedRefs } from '@desktop-client/hooks/useMergedRefs';
@@ -100,7 +96,6 @@ export function AmountInput({
}
function onInputTextChange(val) {
val = reapplyThousandSeparators(val);
val = autoDecimals
? appendDecimals(val, String(hideFraction) === 'true')
: val;

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [youngcw]
---
Fix adding decimals to desktop amount inputs