Skip to content

Commit

Permalink
feat(campaign): reverse announcements
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Aug 20, 2024
1 parent 6bf113b commit 4139cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/CampaignDetail/ArticleFeeds/MainFeed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const MainFeed = ({ feedType, camapign }: MainFeedProps) => {
const shortHash = getQuery('shortHash')
const isAll = feedType === FEED_TYPE_ALL
const isAnnouncement = feedType === FEED_TYPE_ANNOUNCEMENT
const announcement = camapign.announcements
const announcements = camapign.announcements

const { data, loading, error, fetchMore, networkStatus, client } =
usePublicQuery<CampaignArticlesPublicQuery>(CAMPAIGN_ARTICLES_PUBLIC, {
Expand Down Expand Up @@ -138,7 +138,7 @@ const MainFeed = ({ feedType, camapign }: MainFeedProps) => {
if (isAnnouncement) {
return (
<List>
{announcement.map((article, i) => (
{[...announcements].reverse().map((article, i) => (
<List.Item key={`${feedType}:${i}`}>
<ArticleDigestFeed
article={article}
Expand Down

0 comments on commit 4139cd9

Please sign in to comment.