Skip to content

Commit

Permalink
Don't care about surveys for now
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Nov 5, 2023
1 parent 17a6b55 commit 8c749dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export class SocialServiceListItemComponent implements OnChanges {
let ret: any = null;
if (item.item) {
const updated = item.item.manualBudget && item.item.manualBudget.length > 0 &&
item.item.manualBudget[0].year >= 2022 &&
(item.item.tenders || []).every((tender) => !tender.survey || tender.survey.submitted);
item.item.manualBudget[0].year >= 2022;
// && (item.item.tenders || []).every((tender) => !tender.survey || tender.survey.submitted);
const complete = !!item.item.complete && !item.item.deleted;
const keepPrivate = !!item.item.keepPrivate;
const incomplete = !item.item.complete && !item.item.deleted;
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/social-service-list/item-filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export class ItemFilterUpdateNeeded extends ItemFilter {
public condition(item: any): boolean {
const tenders = item.tenders || [];
return !item.deleted && item.complete && (
(item.manualBudget && item.manualBudget.length > 0 && item.manualBudget[0].year < 2022) ||
tenders.any((tender) => tender.survey && !tender.survey.submitted)
(item.manualBudget && item.manualBudget.length > 0 && item.manualBudget[0].year < 2022)
// || tenders.any((tender) => tender.survey && !tender.survey.submitted)
);
}
}
Expand Down

0 comments on commit 8c749dc

Please sign in to comment.