From 111894bc3e240f249594633a21139d1e1c8b9050 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 7 Feb 2022 11:44:32 +0100 Subject: [PATCH] Move case firstTransaction in case their is no previous Transaction. --- backend/src/graphql/resolver/TransactionResolver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/graphql/resolver/TransactionResolver.ts b/backend/src/graphql/resolver/TransactionResolver.ts index 99f1f4d25..aa65672fe 100644 --- a/backend/src/graphql/resolver/TransactionResolver.ts +++ b/backend/src/graphql/resolver/TransactionResolver.ts @@ -103,9 +103,9 @@ async function calculateAndAddDecayTransactions( decayStartTransaction.received.getTime() / 1000 ).toString() } - } else { - finalTransaction.firstTransaction = true } + } else { + finalTransaction.firstTransaction = true } // sender or receiver when user has sent money