Skip to content

Commit

Permalink
fix: Update page.tsx
Browse files Browse the repository at this point in the history
Fix build error due to navigator reference

Signed-off-by: Frostyfrog <frostyfrog@users.noreply.github.com>
  • Loading branch information
Frostyfrog committed Apr 2, 2024
1 parent 10fd194 commit 81a3ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/wyvern/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { useQueryState } from 'next-usequerystate'
}
*/

const isMobile = navigator.userAgentData?.mobile ?? false; //resolves true/false
const isMobile = navigator ? navigator.userAgentData?.mobile : false; //resolves true/false

function RenderChat() {
//const searchParams = useSearchParams()
Expand Down

0 comments on commit 81a3ee6

Please sign in to comment.