Skip to content

Commit

Permalink
Fix block list last page (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon authored Aug 20, 2024
1 parent 5b31eb3 commit e61e960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extended-sdk/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class ExtendedSDKClient extends VocdoniSDKClient {
)
}

const lastPage = Math.ceil(totalItems / limit)
const lastPage = Math.ceil(totalItems / limit) - 1

return Promise.all(promises).then((blockInfo) => {
// flatten the array[][] into array[]
Expand Down

0 comments on commit e61e960

Please sign in to comment.