mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 13:09:31 +01:00
Fix: fix semver detection bug
This commit is contained in:
parent
0197b449ed
commit
49036a9738
@ -1,6 +1,6 @@
|
|||||||
import { useTranslation } from "next-i18next";
|
import { useTranslation } from "next-i18next";
|
||||||
import useSWR from "swr";
|
import useSWR from "swr";
|
||||||
import { compareVersions } from "compare-versions";
|
import { compareVersions, validate } from "compare-versions";
|
||||||
import { MdNewReleases } from "react-icons/md";
|
import { MdNewReleases } from "react-icons/md";
|
||||||
|
|
||||||
export default function Version() {
|
export default function Version() {
|
||||||
@ -44,7 +44,7 @@ export default function Version() {
|
|||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
{version === "main" || version === "dev" || version === "nightly"
|
{!validate(version)
|
||||||
? null
|
? null
|
||||||
: releaseData &&
|
: releaseData &&
|
||||||
latestRelease &&
|
latestRelease &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user