Skip to content

Commit b6d0037

Browse files
committed
Merge branch 'main' of https://github.com/pmndrs/xr
2 parents 34fceed + bce8b5f commit b6d0037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/xr/src/guard/session-mode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function useIsInSessionMode(
1212
if (allow != null) {
1313
return Array.isArray(allow) ? allow.includes(mode) : allow === mode
1414
}
15-
return true
15+
return mode !== null
1616
}
1717

1818
/**

0 commit comments

Comments
 (0)