diff options
author | Joris | 2016-04-07 23:58:23 +0200 |
---|---|---|
committer | Joris | 2016-04-07 23:58:23 +0200 |
commit | 6541fa5316816d6f97a87a370775cfe278e7eeb8 (patch) | |
tree | 733c7136776d652db2711fad2d8427d70136bccf /src/client/elm/LoggedIn/Home/View | |
parent | f101c20c9da59c8c644d3cb6fa0b1d08f63e40e4 (diff) |
Add cumulative incomes by user
Diffstat (limited to 'src/client/elm/LoggedIn/Home/View')
-rw-r--r-- | src/client/elm/LoggedIn/Home/View/Paging.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/elm/LoggedIn/Home/View/Paging.elm b/src/client/elm/LoggedIn/Home/View/Paging.elm index b669b6e..939ee55 100644 --- a/src/client/elm/LoggedIn/Home/View/Paging.elm +++ b/src/client/elm/LoggedIn/Home/View/Paging.elm @@ -45,7 +45,7 @@ truncatePages currentPage pages = if currentPage <= showedLeftPages then [1..showedPages] else if currentPage > totalPages - showedRightPages then - [(totalPages - showedPages)..totalPages] + [(totalPages - showedPages + 1)..totalPages] else [(currentPage - showedLeftPages)..(currentPage + showedRightPages)] in List.filter (flip List.member pages) truncatedPages |