Skip to content

Commit 137383f

Browse files
fix(XRButton): apply fallback for render props (#297)
1 parent 433cc22 commit 137383f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/XR.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ export const XRButton = React.forwardRef<HTMLButtonElement, XRButtonProps>(funct
407407

408408
return (
409409
<button {...props} ref={ref} onClick={status === 'unsupported' ? onClick : handleButtonClick}>
410-
{typeof children === 'function' ? children(status) : children ?? label}
410+
{(typeof children === 'function' ? children(status) : children) ?? label}
411411
</button>
412412
)
413413
})

0 commit comments

Comments
 (0)