Skip to content

Commit 90a2481

Browse files
Updated type check
1 parent 07e23c4 commit 90a2481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/source/hooks/use-unity-canvas-id.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const unityCanvasIdPrefix = "react-unity-webgl-canvas";
2121
const useUnityCanvasId = (unityProps: UnityProps): string => {
2222
// If the user has provided a Unity canvas ID, then this value is returned.
2323
// This is useful for when the user wants to use a custom canvas ID.
24-
if (unityProps.id) {
24+
if (unityProps.id !== undefined) {
2525
return unityProps.id;
2626
}
2727

0 commit comments

Comments
 (0)