Skip to content

Commit

Permalink
fix: changed filter to take into account proper beta versioning name (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDygma authored Aug 4, 2023
1 parent 7d19587 commit ca3b853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "Bazecor",
"productName": "Bazecor",
"version": "1.3.1",
"fwVersion": "1.0.9beta",
"description": "Bazecor desktop app",
"private": true,
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/modules/NavigationMenu/NavigationMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import Styled from "styled-components";
import Version from "@Types/version";
import Pages from "@Types/pages";
import DygmaLogo from "@Assets/logo.svg";
import { BatteryStatus} from "../Battery";
import { BatteryStatus } from "../Battery";
import i18n from "../../i18n";
import Focus from "../../../api/focus";
import { NavigationButton } from "../../component/Button";
Expand Down Expand Up @@ -157,7 +157,7 @@ function NavigationMenu(props: NavigationMenuProps): React.JSX.Element {
const fwList = await getGitHubFW(focus.device.info.product);
let Beta = getVersions.bazecor.includes("beta");
let cleanedVersion = getVersions.bazecor;
if (Beta) cleanedVersion = getVersions.bazecor.replace("beta", "");
if (Beta && !getVersions.bazecor.includes("-beta")) cleanedVersion = getVersions.bazecor.replace("beta", "");
const semVerCheck = SemVer.compare(fwList[0].version, cleanedVersion);
Beta = Beta || focus.device.info.product !== "Raise";
setVersions(getVersions);
Expand Down

0 comments on commit ca3b853

Please sign in to comment.