Skip to content

Commit

Permalink
Merge pull request #1442 from thematters/fix/hottest-feed-a-b
Browse files Browse the repository at this point in the history
[hotfix - master] fix(feed): fix hottest feed a/b splitting
  • Loading branch information
robertu7 authored Aug 17, 2020
2 parents dc972fa + 382a414 commit cf33be1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/Home/Feed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,14 @@ const MainFeed = ({ feedSortType: sortBy, viewMode }: MainFeedProps) => {

/**
* Data Fetching
*
* Hottest Feed:
* 1) Logged-in User: Hottest, `article_activity_materialized`
* 2) Anonymous User: Valued, `article_value_materialized`
*/
let query = FEED_ARTICLES_PUBLIC[sortBy]

if (isHottestFeed && viewer.id) {
if (isHottestFeed && !viewer.id) {
query = FEED_ARTICLES_PUBLIC.valued
}

Expand Down

0 comments on commit cf33be1

Please sign in to comment.