hemilabs / ui-monorepo

UI monorepo for Hemi Labs
https://app.hemi.xyz/
MIT License
2 stars 2 forks source link

window.umami may be undefined, although it shows as loaded #655

Open gndelia opened 1 month ago

gndelia commented 1 month ago

Description

It seems under certain circumstances (which I can't figure out yet), the useUmami() returns track defined (which means that loaded equals true), but in the implementation of it, window.umami.track throws an error, because window.umami is not defined.

I don't know if these happens because the analytics script is blocked, but somehow it is marked as loaded. See entry report. This may need to be solved on umami-analytics-next

Steps to reproduce

Environment

Proposed fix

sentry-io[bot] commented 1 month ago

Sentry Issue: PORTAL-5P