Round value record amounts.
Build and Deploy Web App / build-and-deploy (push) Successful in 18s
Details
Build and Deploy Web App / build-and-deploy (push) Successful in 18s
Details
This commit is contained in:
parent
7aded42132
commit
df4460d2ca
|
|
@ -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 * Math.pow(10, props.account.currency.fractionalDigits)
|
value: Math.round(amount.value * Math.pow(10, props.account.currency.fractionalDigits))
|
||||||
}
|
}
|
||||||
const api = new AccountApiClient(route)
|
const api = new AccountApiClient(route)
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue