Skip to content

Commit

Permalink
fix: Local button
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasm committed Sep 1, 2024
1 parent e7e66b4 commit 3b31975
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/WidgetTrends/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,11 @@ export default function SearchTrends() {
return <Alert>{t('warnings.torrent')}</Alert>
}

if (category === 'Games') {
if (category === 'Games' || category === 'Finance') {
return null
}

if (dataTrends || errorTrends) {
if (dataTrends || errorTrends || category === 'Local') {
return (
<section className={Styles.container + ' ' + Styles[`trends${category}`]}>
<div className={Styles.title}>
Expand All @@ -369,8 +369,6 @@ export default function SearchTrends() {

{category === 'Local' && <ButtonGeolocation />}

{errorTrends && <div>Error on API</div>}

{dataTrends && (
<ul>
{dataTrends?.data?.map((item: ITrendsItem, index: number) => (
Expand All @@ -390,6 +388,7 @@ export default function SearchTrends() {
)}

<div className={Styles.credits}>
{errorTrends && <p>Error on API</p>}
{dataTrends && (
<p>
{t('powered')}{' '}
Expand Down
Binary file modified public/share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3b31975

Please sign in to comment.