Skip to content

Commit

Permalink
Make sure latest version check is the same as before, will improve wh…
Browse files Browse the repository at this point in the history
…en making the banner
  • Loading branch information
Pelsin committed Dec 27, 2024
1 parent 45e8fb5 commit cad1c24
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions www/src/Pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default function HomePage() {
</div>
);
}

return (
<div>
<h1>{t('HomePage:header-text')}</h1>
Expand All @@ -45,18 +44,20 @@ export default function HomePage() {
<div className="system-text">
{t('HomePage:latest-text', { version: latestVersion })}
</div>
{currentVersion !== latestVersion && (
<div className="mt-3 mb-3">
<a
target="_blank"
rel="noreferrer"
href={latestDownloadUrl}
className="btn btn-primary"
>
{t('HomePage:get-update-text')}
</a>
</div>
)}
{latestVersion &&
currentVersion?.split('-').length == 1 &&
currentVersion !== latestVersion && (
<div className="mt-3 mb-3">
<a
target="_blank"
rel="noreferrer"
href={latestDownloadUrl}
className="btn btn-primary"
>
{t('HomePage:get-update-text')}
</a>
</div>
)}

<strong className="system-text">
{t('HomePage:memory-header-text')}
Expand Down

0 comments on commit cad1c24

Please sign in to comment.