Skip to content

Commit

Permalink
Slight fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jan 29, 2024
1 parent 2e03b71 commit f91a05d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class ListsService {
}),
).subscribe(([enabled, lists, items]) => {
lists = lists.sort((a: ListContents, b: ListContents) => (b.update_time || '').localeCompare(a.update_time || ''));
items = items.sort((a: ListItem, b: ListItem) => (b.create_time || '').localeCompare(a.create_time || ''));
items = items.sort((a: ListItem, b: ListItem) => (b.update_time || b.create_time || '').localeCompare(a.update_time || a.create_time || ''));
lists.forEach((list: any) => {
list.items = items.filter((item: ListItem) => item.list_id === list.id);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class SearchResultComponent implements OnInit {

// Top line:
tag: (x) => x.code[0] === 'C' ? 'נושא תקציבי' : 'סעיף תקציבי',
amount: (x) => `${this.format_number(x.net_revised)} ₪`,
amount: (x) => `${this.format_number(x.net_revised || x.net_allocated)} ₪`,

// Main body:
title: ':title',
Expand Down

0 comments on commit f91a05d

Please sign in to comment.