feat(MED-168): disable useless console logs on browserside, too many logs

This commit is contained in:
2025-09-19 10:00:08 +03:00
parent c37706f6a9
commit 81f7a03388
2 changed files with 9 additions and 0 deletions

View File

@@ -4,6 +4,9 @@ const noop = (event: string) => {
// do nothing - this is to prevent errors when the analytics service is not initialized
return async (...args: unknown[]) => {
if (typeof window !== 'undefined') {
return;
}
console.debug(
`Noop analytics service called with event: ${event}`,
...args.filter(Boolean),