Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Lanzilotto committed Dec 15, 2023
1 parent 242a97b commit 05eb79f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/app-store/app-store.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,25 +230,25 @@ export class AppStoreComponent implements OnInit {

const paidApps = [
{
title: "WhatsApp Business", _id: "638a2564ccd1d40013e52125"
title: "WhatsApp Business"
},
{
title: "Facebook Messenger", _id: "6421f8093e8de70013f78a5d"
title: "Facebook Messenger"
},
{
title: "Help Center", _id: "643820f0edf2f350eeb2d835"
title: "Help Center"
}
]

if (!this.isVisiblePAY) {
this.apps = _apps.apps.filter(a => !paidApps.some(p => p._id == a._id));
this.apps = _apps.apps.filter(a => !paidApps.some(p => p.title == a.title));

this.logger.log('APP-STORE - Here yes')
this.logger.log('APP-STORE - getApps APPS after filter', this.apps)
}

const sendTranscriptAppIndex = this.apps.findIndex(object => {
return object._id === "64259aaf035da07321451424";
return object.title === "Send transcript by email";
});

this.logger.log('sendTranscriptAppIndex ', sendTranscriptAppIndex);
Expand Down

0 comments on commit 05eb79f

Please sign in to comment.