From aed83c2af6c59746def32a216e35f464aa27f900 Mon Sep 17 00:00:00 2001 From: LWinterberg <87814144+LWinterberg@users.noreply.github.com> Date: Tue, 29 Oct 2024 16:20:57 +0100 Subject: [PATCH] fix postdownload page not being triggered --- src/components/button/PlatformDownloadMuseHubButton.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/button/PlatformDownloadMuseHubButton.jsx b/src/components/button/PlatformDownloadMuseHubButton.jsx index 9eca691..35f6ed1 100644 --- a/src/components/button/PlatformDownloadMuseHubButton.jsx +++ b/src/components/button/PlatformDownloadMuseHubButton.jsx @@ -1,4 +1,5 @@ import React from "react"; +import useBrowserOS from "../../hooks/useDetectOS"; function PlatformDownloadMuseHubButton(props) { const { museHubReleaseData } = props; @@ -9,13 +10,14 @@ function PlatformDownloadMuseHubButton(props) { "trackEvent", "Download Button", "Download Muse Hub", - `Download Muse Hub button ${OS}`, + `Download Muse Hub button ${useBrowserOS}`, ]); } setTimeout(() => { window.location.href = "/post-download"; }, 2000); + } return (