|
|
|
|
@ -205,7 +205,8 @@ export class HomeComponent implements AfterViewInit {
|
|
|
|
|
this.offersService.getOffers({}, () => { }, this.ts.trPK('general', 'retry'), this.itemCounter).subscribe((res) => {
|
|
|
|
|
const data = JSON.parse(res['Mohemm_ITG_ResponseItem']);
|
|
|
|
|
if (data['result']) {
|
|
|
|
|
const allItem = JSON.parse(data.result['data']);
|
|
|
|
|
var allItem = JSON.parse(data.result['data']);
|
|
|
|
|
allItem = this.filterActiveItems(allItem);
|
|
|
|
|
if (allItem) {
|
|
|
|
|
allItem.forEach(element => {
|
|
|
|
|
this.offersData.push(element);
|
|
|
|
|
|