Closed melanie-adler closed 1 month ago
As a user
user
I want to see the total balance of my transactions,
see the total balance of my transactions
so that I can quickly understand my overall financial situation.
I can quickly understand my overall financial situation
feature/account-balance
AccountBalance
TransactionForm
Button
sumOfTransaction
please don't use a second state for the balance, it should be derived directly from the transactions state.
please don't use a useEffect here as well.
👍
LGTM ✨
Value Proposition
As a
user
I want to
see the total balance of my transactions
,so that
I can quickly understand my overall financial situation
.Description
Acceptance Criteria
Tasks
feature/account-balance
AccountBalance
component.AccountBalance
is not shown, when adding a new transaction.TransactionForm
component withButton
component.sumOfTransaction
function, to calculate the sum of all incomes and subtract the sum of all expenses.