Explorar el Código

Bug fix: bill/income total were not displaying.

Lee Morgan hace 11 meses
padre
commit
3669fa4d13
Se han modificado 2 ficheros con 8 adiciones y 0 borrados
  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(),