From e0499761de99c058cf04a60b0ddc63146360ac01 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 28 Sep 2024 07:23:28 -0400 Subject: [PATCH] offer init --- .../components/offers-received/offers-received.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: {