Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Commit

Permalink
Formated code
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedanas committed Oct 11, 2018
1 parent b794eb6 commit 0f4c821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/shared/search/search-result.component.ts
Expand Up @@ -182,12 +182,12 @@ export class SearchResultComponent implements OnChanges {

getFirstResult(): number {
const currentPage = (this.selected.page ? this.selected.page : 1);
return ( (currentPage - 1) * this.paginationPageSize ) + 1 + this.getDraftsCountIfNotPageOne(currentPage);
return ((currentPage - 1) * this.paginationPageSize) + 1 + this.getDraftsCountIfNotPageOne(currentPage);
}

getLastResult(): number {
const currentPage = (this.selected.page ? this.selected.page : 1);
return ( (currentPage - 1) * this.paginationPageSize ) + this.resultView.results.length + this.getDraftsCountIfNotPageOne(currentPage);
return ((currentPage - 1) * this.paginationPageSize) + this.resultView.results.length + this.getDraftsCountIfNotPageOne(currentPage);
}

getTotalResults(): number {
Expand Down

0 comments on commit 0f4c821

Please sign in to comment.