We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e0f5af commit 1871784Copy full SHA for 1871784
1 file changed
services/utils/general.js
@@ -41,6 +41,8 @@ export const getShortNamespaceID = (id) => {
41
}
42
43
export const shortHash = (hash) => {
44
+ if (!hash) return ""
45
+
46
return `${hash.slice(0, 4).toUpperCase()} ••• ${hash.slice(-4).toUpperCase()}`
47
48
@@ -104,7 +106,7 @@ export const isMobile = () => {
104
106
105
107
return (
108
REGEX_MOBILE1.test(userAgent) ||
- REGEX_MOBILE2.test(userAgent.slice(0, 4)) ||
109
+ REGEX_MOBILE2.test(userAgent?.slice(0, 4)) ||
110
(typeof window !== "undefined" && window.innerWidth < 1300)
111
)
112
0 commit comments