Skip to content

Commit

Permalink
Merge branch 'New-Article-Page' into feat/drawer-component
Browse files Browse the repository at this point in the history
  • Loading branch information
wlliaml committed Jan 23, 2024
2 parents 752a41b + ef05a25 commit 15cfe71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/views/ArticleDetail/SupportWidget/Donators/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const fragments = {
fragment DonatorsArticle on Article {
id
donations: transactionsReceivedBy(
input: { first: 9, purpose: donation }
input: { first: 50, purpose: donation }
) {
totalCount
edges {
Expand Down
5 changes: 2 additions & 3 deletions src/views/ArticleDetail/SupportWidget/Donators/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ const Donators = ({

const edges = article.donations.edges
const donatorsCount = article.donations.totalCount
const donators = (
const frontDonators = (
edges?.map(({ node }) => node).filter((user) => !!user) || []
).slice(0, maxAvatarNum)
let frontDonators = donators.slice(0, maxAvatarNum - 1)
).slice(0, maxAvatarNum + 1)

const containerClasses = classNames({
[styles.clickable]: isAuthor,
Expand Down

0 comments on commit 15cfe71

Please sign in to comment.