diff --git a/src/app/components/offers-received/offers-received.component.ts b/src/app/components/offers-received/offers-received.component.ts index 75c8901..43b30a3 100644 --- a/src/app/components/offers-received/offers-received.component.ts +++ b/src/app/components/offers-received/offers-received.component.ts @@ -29,7 +29,7 @@ export class OffersReceivedComponent implements OnInit { private loadingCtrl: LoadingController, public bannersDataService: BannersDataService ) { - // this.getMyOffersData(); + this.session_image_server = this.sessionDataProviderService.session_image_server; setInterval(()=>{ this.reduceOfferData(); // = this.bannersDataService.offerData; @@ -39,7 +39,7 @@ export class OffersReceivedComponent implements OnInit { } ngOnInit() { - + this.reduceOfferData(); } session_image_server:string=''; @@ -146,7 +146,7 @@ if ( this.currOpenOffer != '' && this.currOpenOffer == item.offer_uid){ else{ this.offerDataReduced = this.offerData; } - this.total_offers = this.offerData.length; + this.total_offers = this.offerData?.length; } responseData: {