From 3d3aff3500975d14ed4c51e1219aa21e7c222672 Mon Sep 17 00:00:00 2001 From: Mohammad Shahbaz Alam Date: Tue, 5 Dec 2023 16:55:55 +0530 Subject: [PATCH] Fix brave console error --- src/utils/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }