diff --git a/website/src/components/EntryAudioDisplay.tsx b/website/src/components/EntryAudioDisplay.tsx index f4dd07f..41cdaee 100644 --- a/website/src/components/EntryAudioDisplay.tsx +++ b/website/src/components/EntryAudioDisplay.tsx @@ -27,13 +27,12 @@ export function EntryAudioDisplay({ } function handleDownload() { - if (user && user.admin) { - return; + if (user && !user.admin) { + ReactGA.event({ + category: "sounds", + action: `download ${entry.p} - ${entry.ts}`, + }); } - ReactGA.event({ - category: "sounds", - action: `download ${entry.p} - ${entry.ts}`, - }); const documentName = `${entry.p}-${entry.ts}.mp3`; fetch(audioPath)