fix: Update autoDecimals behavior based on hideFraction preference (#6572)

This commit is contained in:
Ilia Skliaruk
2026-01-06 19:55:25 +02:00
committed by GitHub
parent acc21f1762
commit a2a82e90d6
2 changed files with 9 additions and 1 deletions

View File

@@ -393,6 +393,8 @@ const ChildTransactionEdit = forwardRef<
const { t } = useTranslation();
const { editingField, onRequestActiveEdit, onClearActiveEdit } =
useSingleActiveEditForm()!;
const [hideFraction, _] = useSyncedPref('hideFraction');
const prettyPayee = getPrettyPayee({
t,
transaction,
@@ -458,7 +460,7 @@ const ChildTransactionEdit = forwardRef<
onClearActiveEdit();
}
}}
autoDecimals
autoDecimals={!hideFraction}
/>
</View>
</View>