-
-
Notifications
You must be signed in to change notification settings - Fork 209
Glasgow | May-2025 | Mansoor Munawar | Sprint 3 | alarm clock #769
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Code works fine if a user only clicks the "Set Alarm" button once.
However, if the user enters a time and then clicks the "Set Alarm" button multiple times, the countdown clock will not display properly.
Can you fix the issue? -
Some unusual input values can "spoil" the timer display. Can you add code to reject or convert this kind of values?
-
The Self-checklist in the PR description is not properly checked in MarkDown syntax. Can you fix the checkboxes?
|
Hi CJ, I have now made the required adjustment based on the feedback. Thanks |
cjyuan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. You introduced a new bug to your code though.
Sprint-3/alarmclock/alarmclock.js
Outdated
| return; | ||
| } | ||
|
|
||
| if ((remainingSeconds > 86, 400)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested input like 86400?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally missed that. I fixed bug and now it should accept values upto 24 hours. Thanks
Self checklist
Changelist
Briefly explain your PR.
Created multiple functions in order for the alarm clock to work correctly according to set requirements
Questions
Ask any questions you have for your reviewer.