Skip to content

Commit

Permalink
fix(XRButton): apply fallback for render props (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Sep 4, 2023
1 parent 433cc22 commit 137383f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XR.tsx
Expand Up @@ -407,7 +407,7 @@ export const XRButton = React.forwardRef<HTMLButtonElement, XRButtonProps>(funct

return (
<button {...props} ref={ref} onClick={status === 'unsupported' ? onClick : handleButtonClick}>
{typeof children === 'function' ? children(status) : children ?? label}
{(typeof children === 'function' ? children(status) : children) ?? label}
</button>
)
})
Expand Down

0 comments on commit 137383f

Please sign in to comment.