return index

This commit is contained in:
Daniel Lugo 2020-06-27 23:25:47 -04:00
parent 688a4c3cdb
commit 66997a8ba0

View file

@ -18,7 +18,7 @@ const calculateFeedPage = (numberOfPublicKeyGroups, pageRequested) => {
// thanks to sebassdc
return [
((pageRequested - 1) % numberOfPublicKeyGroups) + 1,
(pageRequested - 1) % numberOfPublicKeyGroups,
Math.ceil(pageRequested / numberOfPublicKeyGroups)
]
}