diff --git a/src/utils/common.ts b/src/utils/common.ts index fc374fc..2f45695 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -44,7 +44,7 @@ export const getBrowserName = () => { const { userAgent } = navigator try { // @ts-ignore works only on brave browser - if (navigator.brave.isBrave()) return 'Brave' + if (navigator.brave?.isBrave()) return 'Brave' } catch (error) { console.error(error) }