Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Number doens't accept ints #14

Open
jahglow opened this issue Apr 2, 2018 · 2 comments
Open

Version Number doens't accept ints #14

jahglow opened this issue Apr 2, 2018 · 2 comments

Comments

@jahglow
Copy link

jahglow commented Apr 2, 2018

Hi, great lib. Can you please add conversion of version number to string before evaluation and returning a blocking error that crashes the whole site, that would help. since it's counter intuitive to pass a version NUMBER as a string, but at list covert it to string. it took me to read source code to see where I went wrong, hehe

@narkq
Copy link
Owner

narkq commented Apr 4, 2018

Thanks!
I'll get to that sometime this week.
Although that's strange, react should have warned you about the wrong value, since proptypes are in place

version: PropTypes.oneOf(['1', '2'])

Also, to be fair, version is usually a string, not a number (e.g. '8.6.0').

@jahglow
Copy link
Author

jahglow commented Apr 6, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants