From bbbeff92e83f1844cec4c01d531c8a3f3217b8cc Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Wed, 23 Feb 2022 22:55:15 +0000 Subject: [PATCH] Reset amount to positive after saving transfer transaction --- server/transaction.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/transaction.go b/server/transaction.go index 4f91c06..979614b 100644 --- a/server/transaction.go +++ b/server/transaction.go @@ -62,6 +62,8 @@ func (h *Handler) newTransaction(c *gin.Context) { c.AbortWithError(http.StatusInternalServerError, fmt.Errorf("create transfer transaction: %w", err)) return } + + newTransaction.Amount = amount } else { payeeID, err := GetPayeeID(c.Request.Context(), payload, h) if err != nil {