fix(SW-165): fix issue with pagination now showing

This commit is contained in:
Tobias Johansson
2024-08-23 09:07:10 +02:00
parent b6e22d51a5
commit 88a23c590d

View File

@@ -539,11 +539,12 @@ export const userQueryRouter = router({
return dateA > dateB ? -1 : 1
})
.slice(limit * (page - 1), limit * page)
const slicedData = pageData.slice(limit * (page - 1), limit * page)
return {
data: {
transactions: pageData.map(({ type, attributes }) => {
transactions: slicedData.map(({ type, attributes }) => {
return {
type,
awardPoints: attributes.awardPoints,