mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fixed sendCoins
This commit is contained in:
parent
374841feb3
commit
a37b479158
@ -223,7 +223,7 @@ async function updateStateBalance(
|
||||
balance.amount = centAmount
|
||||
balance.modified = received
|
||||
} else {
|
||||
const decayedBalance = calculateDecay(balance.amount, balance.recordDate, received)
|
||||
const decayedBalance = calculateDecay(balance.amount, balance.recordDate, received).balance
|
||||
balance.amount = Number(decayedBalance) + centAmount
|
||||
balance.modified = new Date()
|
||||
}
|
||||
@ -252,7 +252,7 @@ async function addUserTransaction(
|
||||
Number(lastUserTransaction.balance),
|
||||
lastUserTransaction.balanceDate,
|
||||
transaction.received,
|
||||
),
|
||||
).balance,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user