diff --git a/src/app/home/home.page.html b/src/app/home/home.page.html index 7cfc1bc..6f76c34 100644 --- a/src/app/home/home.page.html +++ b/src/app/home/home.page.html @@ -93,7 +93,7 @@ -
+ diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts index ca8b067..045289b 100644 --- a/src/app/home/home.page.ts +++ b/src/app/home/home.page.ts @@ -96,24 +96,24 @@ export class HomePage implements OnInit { this.checkRecurring() - this.maxDate = this.cdo.toISOString().split('T')[0] - this.expenses = this.expCollRef.valueChanges().pipe(map(array => { - return array.map(item => { - return { - ...item, - date: item.date.toDate() - } - }) - })) - - this.expenses.pipe(throttleTime(1500)).subscribe((values) => { - new Promise((resolve, reject) => { - this.total = values.reduce((prev, current, index, array) => { - if(index === array.length - 1) resolve('😎') - return prev + Number(current.price) - }, 0) - }) // Promise - })// forEach + // this.maxDate = this.cdo.toISOString().split('T')[0] + // this.expenses = this.expCollRef.valueChanges().pipe(map(array => { + // return array.map(item => { + // return { + // ...item, + // date: item.date.toDate() + // } + // }) + // })) + + // this.expenses.pipe(throttleTime(1500)).subscribe((values) => { + // new Promise((resolve, reject) => { + // this.total = values.reduce((prev, current, index, array) => { + // if(index === array.length - 1) resolve('😎') + // return prev + Number(current.price) + // }, 0) + // }) // Promise + // })// forEach }