Skip to content

Commit

Permalink
docs: fix typo to compare GPUTier to 0 instead of "0" (#2339)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlustre authored Feb 13, 2025
1 parent 9fc4fd0 commit edf4e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/misc/detect-gpu-use-detect-gpu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function App() {
const GPUTier = useDetectGPU()
// show a fallback for mobile or lowest tier GPUs
return (
{(GPUTier.tier === "0" || GPUTier.isMobile) ? <Fallback /> : <Canvas>...</Canvas>
{(GPUTier.tier === 0 || GPUTier.isMobile) ? <Fallback /> : <Canvas>...</Canvas>

<Suspense fallback={null}>
<App />
Expand Down

0 comments on commit edf4e12

Please sign in to comment.