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

Fix falsy number check on calendar starting date #139

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OldStarchy
Copy link

The current check fails when month is 0 (January) and incorrectly reverts to the current month, updated to use typeof rather than casting to boolean.

The current check fails when month is 0 (January) and incorrectly reverts to the current month, updated to use typeof rather than casting to boolean.
@OldStarchy OldStarchy changed the title Fix null check on calendar starting date Fix falsy number check on calendar starting date Nov 15, 2017
Changing the falsey check in the last commit to a typeof means that strings aren't treated as numbers (like how it should be) which means numbers need to be used in the initialisation options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant