From adbc4593474d66b217ece85033cef237f4e0c847 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Sun, 10 Dec 2023 16:32:26 -0500 Subject: [PATCH] use addEvent instead of window.plausible --- frontend/src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 6cf990f..c071dbc 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -216,14 +216,14 @@ function App() { toast.error( "No current version set. Contact support or open a Github issue." ); - window.plausible("CurrentVersionNull"); + addEvent("CurrentVersionNull"); return; } let historyTree; try { historyTree = extractHistoryTree(appHistory, currentVersion); - window.plausible("HistoryTreeFailed"); + addEvent("HistoryTreeFailed"); } catch { toast.error( "Version history is invalid. This shouldn't happen. Please contact support or open a Github issue."