Skip to content

Commit

Permalink
Update version.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Jan 27, 2025
1 parent 546d699 commit b5eae49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/version.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useTranslation } from "next-i18next";
import useSWR from "swr";
import { compareVersions } from "compare-versions";
import { compareVersions, validate } from "compare-versions";
import { MdNewReleases } from "react-icons/md";

export default function Version() {
Expand Down Expand Up @@ -44,7 +44,7 @@ export default function Version() {
</a>
)}
</span>
{version === "main" || version === "dev" || version === "nightly"
{version === "main" || version === "dev" || version === "nightly" || !validate(version)
? null
: releaseData &&
latestRelease &&
Expand Down

0 comments on commit b5eae49

Please sign in to comment.