mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix to checko for 2 after comma instead of 4
This commit is contained in:
parent
cc9e3b54c9
commit
4cd7efe184
@ -82,7 +82,7 @@ async function calculateAndAddDecayTransactions(
|
|||||||
)
|
)
|
||||||
const balance = prev.balance - decay.balance
|
const balance = prev.balance - decay.balance
|
||||||
|
|
||||||
if (balance) {
|
if (balance > 99) {
|
||||||
finalTransaction.decay = decay
|
finalTransaction.decay = decay
|
||||||
finalTransaction.decay.balance = roundFloorFrom4(balance)
|
finalTransaction.decay.balance = roundFloorFrom4(balance)
|
||||||
if (
|
if (
|
||||||
@ -144,7 +144,7 @@ async function calculateAndAddDecayTransactions(
|
|||||||
now.getTime(),
|
now.getTime(),
|
||||||
)
|
)
|
||||||
const balance = userTransaction.balance - decay.balance
|
const balance = userTransaction.balance - decay.balance
|
||||||
if (balance) {
|
if (balance > 99) {
|
||||||
const decayTransaction = new Transaction()
|
const decayTransaction = new Transaction()
|
||||||
decayTransaction.type = 'decay'
|
decayTransaction.type = 'decay'
|
||||||
decayTransaction.balance = roundFloorFrom4(balance)
|
decayTransaction.balance = roundFloorFrom4(balance)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user