Fix incorrect fractional value thing.
Build and Deploy Web App / build-and-deploy (push) Successful in 32s Details

This commit is contained in:
andrewlalis 2025-08-31 20:43:05 -04:00
parent aba86b6979
commit c17624f2d9
1 changed files with 1 additions and 1 deletions

View File

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