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

Support Timeline unavailableHours #1812

Merged
merged 1 commit into from
Mar 14, 2022
Merged

Conversation

ethanshar
Copy link
Collaborator

No description provided.

Copy link
Contributor

@lidord-wix lidord-wix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comment, feel free to merge if you think it's nothing :)

return (
unavailableHours
.map(hours => {
if (!inRange(hours.start, 0, 25) || !inRange(hours.end, 0, 25)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure it's a problem, but technically 24.5 is a valid hour in this check.

Copy link
Collaborator Author

@ethanshar ethanshar Mar 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically you right.. but a line afterwards I use Math.min/max to avoid such issues

@ethanshar ethanshar merged commit 336f694 into master Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants