fix(SW-165): fix issue with pagination now showing
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user