Skip to content

Commit bb95216

Browse files
committed
openvino: only check minor versions
1 parent a54f98a commit bb95216

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/download/openvino.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import BaseLayout from "../../layouts/BaseLayout.astro";
66
77
const { win, mac, version, revision } = openvinoReleases;
88
const audaversion = audacityReleases.version;
9+
// Determine if major.minor match between OpenVINO and Audacity
10+
const sameMinor = version.split('.').slice(0, 2).join('.') === audaversion.split('.').slice(0, 2).join('.');
911
1012
import DownloadButton from "../../components/button/DownloadButton";
1113
import Audacity_Logo from "../../assets/img/Audacity_Logo.svg";
@@ -49,7 +51,7 @@ import SplitDownloadButton from "../../components/button/SplitDownloadButton";
4951
>
5052
{
5153
/*display a warning when openvino and Audacity are different versions*/
52-
version === audaversion ? (
54+
sameMinor ? (
5355
""
5456
) : (
5557
<b>

0 commit comments

Comments
 (0)