Skip to content

Commit

Permalink
fix(tapping-on-tldr): tapping on trending topics or learn more should…
Browse files Browse the repository at this point in the history
… use tldr_topic
  • Loading branch information
MahtabBukhari committed Aug 15, 2024
1 parent 0bd5817 commit fc2b746
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 fc2b746

Please sign in to comment.