oops
This commit is contained in:
parent
8b6cdb1a1b
commit
31604be620
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue