Parcourir la source

Bug fix: bill/income total were not displaying.

Lee Morgan il y a 11 mois
Parent
commit
3669fa4d13
2 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 4 0
      src/views/js/data/Bill.js
  2. 4 0
      src/views/js/data/Income.js

+ 4 - 0
src/views/js/data/Bill.js

@@ -13,6 +13,10 @@ export default class Bill{
         return this._name;
     }
 
+    get amount(){
+        return this._amount;
+    }
+
     static create(name, amount){
         return new Bill(
             crypto.randomUUID(),

+ 4 - 0
src/views/js/data/Income.js

@@ -13,6 +13,10 @@ export default class Income{
         return this._name;
     }
 
+    get amount(){
+        return this._amount;
+    }
+
     static create(name, amount){
         return new Income(
             crypto.randomUUID(),