fix frontend decay

This commit is contained in:
Ulf Gebhardt 2022-02-27 13:08:44 +01:00
parent e988cf9371
commit 81b7a4915d
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -20,7 +20,7 @@ const virtualDecayTransaction = (
userId: -1,
previous: -1,
typeId: TransactionTypeId.DECAY,
amount: new Decimal(0),
amount: decay.decay ? decay.decay : new Decimal(0), // new Decimal(0), // this kinda is wrong, but helps with the frontend query
balance: decay.balance,
balanceDate: time,
decay: decay.decay ? decay.decay : new Decimal(0),