From 5cc4c50c40c4336c7dd62277756d4363d7faa2f9 Mon Sep 17 00:00:00 2001 From: Jaime Caso Date: Mon, 23 Sep 2024 15:43:42 +0200 Subject: [PATCH] fix: click learn more winner (#590) * fix: open terms and package.json details * fix: open github commit from current version * feat: set matomo env vars * feat: parse matomo project id * feat: add trackEvents * feat: set VITE_MATOMO_PROJECT_ID 1 by default * fix: remove debugs * fix: update status page * feat: multiple winners * fix: winner learn more --- ui/summit-2024/src/pages/Categories/components/ViewReceipt.tsx | 2 +- ui/summit-2024/src/pages/Categories/components/Winners.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/summit-2024/src/pages/Categories/components/ViewReceipt.tsx b/ui/summit-2024/src/pages/Categories/components/ViewReceipt.tsx index a85da8167..06ce84ef9 100644 --- a/ui/summit-2024/src/pages/Categories/components/ViewReceipt.tsx +++ b/ui/summit-2024/src/pages/Categories/components/ViewReceipt.tsx @@ -98,7 +98,7 @@ const ViewReceipt: React.FC = ({ categoryId, close }) => { eventBus.publish(EventName.ShowToast, r.message, ToastType.Error); return; } - if (JSON.stringify(r) === JSON.stringify(receipts[categoryId])) { + if (JSON.stringify(r) === JSON.stringify(receipt)) { eventBus.publish( EventName.ShowToast, "No changes detected in the receipt", diff --git a/ui/summit-2024/src/pages/Categories/components/Winners.tsx b/ui/summit-2024/src/pages/Categories/components/Winners.tsx index 9b5a7efc9..4e8eeff0e 100644 --- a/ui/summit-2024/src/pages/Categories/components/Winners.tsx +++ b/ui/summit-2024/src/pages/Categories/components/Winners.tsx @@ -208,7 +208,7 @@ const Winners: React.FC = ({ return ( ) => - handleLearnMoreClick(event, "") + handleLearnMoreClick(event, winner.id) } align="center" mt={2}