Closed leomav closed 1 year ago
@jeffreylanters Sorry for that, i updated the PR cause I hadn't sing my commits :)
@jeffreylanters finally managed to add verification correctly this time. Sorry for wasting time, that was the first time doing that.
Hi Leonidas! Thank you for your pull request. Very sharp, this was indeed unintended behaviour. I'll merge it right away. 🦾
In this PR we try to fix a matchWebGLToCanvasSize issue. This prop was always set to true event if we set it to false via. That's because in /hooks/use-unity-arguments.ts the matchWebGLToCanvasSize was being set with an OR operator which was always resulting to true.
Here is a screenshot of the only in-code change applied. By checking if the type is boolean we make sure that no other types like 'string' or 'undefined' are coming in, but if so, true should be the default value.