can now create new categories

This commit is contained in:
Annika
2022-07-13 15:58:16 -06:00
parent 775bf23c19
commit 57b247767d
4 changed files with 27 additions and 4 deletions
@@ -23,6 +23,9 @@ export default {
return {
totalSpent() {
let total = 0;
if (!props.category.transactions) {
return 0
}
for (let t = 0; t < props.category.transactions.length; t++) {
total += props.category.transactions[t].amount
}