Просмотр исходного кода

Bug fix: bill/income total were not displaying.

Lee Morgan 11 месяцев назад
Родитель
Сommit
3669fa4d13
2 измененных файлов с 8 добавлено и 0 удалено
  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(),