feat(transaction): #112 allow negative value without treasurechest for rebalancing
Some checks failed
Build Docker Image / Build-Docker-Image (push) Has been cancelled

This commit is contained in:
2025-05-19 13:03:16 +02:00
parent 25e748c12b
commit ea7be873de

View File

@@ -551,9 +551,7 @@ func updateErrors(transaction *types.Transaction) {
error := "" error := ""
if transaction.Value < 0 { if transaction.Value < 0 {
if transaction.AccountId == nil { if transaction.TreasureChestId == nil {
error = "no account specified"
} else if transaction.TreasureChestId == nil {
error = "no treasure chest specified" error = "no treasure chest specified"
} }
} else if transaction.Value > 0 { } else if transaction.Value > 0 {