Round value record amounts.
Build and Deploy Web App / build-and-deploy (push) Successful in 18s Details

This commit is contained in:
andrewlalis 2025-09-03 21:38:43 -04:00
parent 7aded42132
commit df4460d2ca
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ async function addValueRecord() {
const payload: AccountValueRecordCreationPayload = {
timestamp: datetimeLocalToISO(timestamp.value),
type: AccountValueRecordType.BALANCE,
value: amount.value * Math.pow(10, props.account.currency.fractionalDigits)
value: Math.round(amount.value * Math.pow(10, props.account.currency.fractionalDigits))
}
const api = new AccountApiClient(route)
try {