Fix incorrect fractional value thing.
Build and Deploy Web App / build-and-deploy (push) Successful in 32s
Details
Build and Deploy Web App / build-and-deploy (push) Successful in 32s
Details
This commit is contained in:
parent
aba86b6979
commit
c17624f2d9
|
|
@ -36,7 +36,7 @@ async function addValueRecord() {
|
|||
const payload: AccountValueRecordCreationPayload = {
|
||||
timestamp: datetimeLocalToISO(timestamp.value),
|
||||
type: AccountValueRecordType.BALANCE,
|
||||
value: amount.value
|
||||
value: amount.value * Math.pow(10, props.account.currency.fractionalDigits)
|
||||
}
|
||||
const api = new AccountApiClient(route)
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue