Skip to content

Commit

Permalink
Merge pull request #2056 from MahtabBukhari/Tapping_on_Trending_topic…
Browse files Browse the repository at this point in the history
…s_or_Learn_more_should_use_tldr_topic_name

Tapping on Trending topics or Learn more should use tldr_topic
  • Loading branch information
Rassl authored Aug 16, 2024
2 parents 67270ab + fc2b746 commit 6376033
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const BriefDescription: FC<Props> = ({ trend, onClose }) => {

const handleLearnMore = async () => {
handleClose()
await fetchData(setBudget, setAbortRequests, trend.name)
await fetchData(setBudget, setAbortRequests, trend.tldr_topic ?? trend.name)
}

const handleClose = useCallback(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/App/SideBar/Trending/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export const Trending = () => {
className="list-item"
direction="row"
justify="space-between"
onClick={() => selectTrending(i.name)}
onClick={() => selectTrending(i.tldr_topic ?? i.name)}
>
<Paragraph>
<IconWrapper>
Expand Down

0 comments on commit 6376033

Please sign in to comment.