We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07e23c4 commit 90a2481Copy full SHA for 90a2481
module/source/hooks/use-unity-canvas-id.ts
@@ -21,7 +21,7 @@ const unityCanvasIdPrefix = "react-unity-webgl-canvas";
21
const useUnityCanvasId = (unityProps: UnityProps): string => {
22
// If the user has provided a Unity canvas ID, then this value is returned.
23
// This is useful for when the user wants to use a custom canvas ID.
24
- if (unityProps.id) {
+ if (unityProps.id !== undefined) {
25
return unityProps.id;
26
}
27
0 commit comments