diff --git a/src/monitoring/events.js b/src/monitoring/events.js index 76d8d4606..dae10899e 100644 --- a/src/monitoring/events.js +++ b/src/monitoring/events.js @@ -41,7 +41,7 @@ export const useDownloadEvent = () => { trackEvent('dataEntry.file.download', { props: { [entityType]: ownerSlug, - 'download location': location, + downloadLocation: location, }, }); }, diff --git a/src/monitoring/events.test.js b/src/monitoring/events.test.js index fa7387e1b..2af6e7c97 100644 --- a/src/monitoring/events.test.js +++ b/src/monitoring/events.test.js @@ -69,7 +69,7 @@ test('Events: onDownload', async () => { expect(eventCall[1]).toStrictEqual({ props: { group: 'abc', - 'download location': 'test', + downloadLocation: 'test', }, }); });