Fix counting

This commit is contained in:
Peter Maquiran
2021-08-25 16:32:02 +01:00
parent 07435162e1
commit f8991b785b
2 changed files with 3 additions and 4 deletions
@@ -1,5 +1,4 @@
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { AnimationController, ModalController } from '@ionic/angular';
import { SafeResourceUrl } from '@angular/platform-browser';
import { PublicationsService } from 'src/app/services/publications.service';
import { Publication } from 'src/app/models/publication';
@@ -27,10 +27,10 @@ export class EventoaprovacaoStoreService {
let restoreMd = localstoreService.get(this.keyNamemd, {})
let restorePr = localstoreService.get(this.keyNamepr, {})
this._listPr = restorePr.lisMd || []
this._listMd = restoreMd.listPr || []
this._listPr = restorePr.listPr || []
this._listMd = restoreMd.lisMd || []
this._countMd = parseInt(restoreMd.countListMd) || 0
this._countPr = parseInt(restoreMd.countListPr) || 0
this._countPr = parseInt(restorePr.countListPr) || 0
this._count = (this._countMd + this._countPr) || 0
}, 10)