Skip to content

Commit daf3e5a

Browse files
authored
Merge pull request #35 from govtechmy/feature/SSD-536-fix-bugs-event-download
Feature/SSD-536-fix-bugs-event-download
2 parents e4ce75f + 96b70fe commit daf3e5a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

data-catalogue/dates.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export const MesyuaratDates = ({
7373
const hansard_id = `${
7474
IS_KK ? routes.HANSARD_KK : IS_DR ? routes.HANSARD_DR : routes.HANSARD_DN
7575
}/${date}`;
76-
const { download: trackDownload } = useAnalytics(hansard_id);
7776
const { download: handleDownload } = useDownload({
7877
filename,
7978
analyticsId: hansard_id,
@@ -160,7 +159,6 @@ export const MesyuaratDates = ({
160159
onSelect={() => {
161160
if (is_old && filetype === "csv") return;
162161
handleDownload(filetype as "pdf" | "csv");
163-
trackDownload(filetype as "pdf" | "csv");
164162
}}
165163
>
166164
{filetype === "pdf" ? (

0 commit comments

Comments
 (0)