-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat(cb2-8776): show error message not showing above field #1089
Conversation
6ce231e
to
8fe234d
Compare
feat(cb2-8776): added access descriptor feat(cb2-8776): changed date logic to be greater than -1 feat(cb2-8776): added ternary to convertToNumber logic and removed unused variable feat(cb2-8776): prevent submission when time is not provided
6fb1b9a
to
8fd67aa
Compare
@@ -29,8 +29,7 @@ export class DateValidators { | |||
|
|||
private static validateTime(time: string, label: string | undefined) { | |||
const [hours, minutes] = time.split(':'); | |||
|
|||
if (!hours || !minutes) { | |||
if (hours === '00' || minutes == '00') { |
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.
what if the test is done at 00:00? That is a valid time no?
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.
Is this not also implying you can't type 00 in the minutes box at all meaning all tests that are conducted on the hour will be invalid times?
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.
@naathanbrown checked with PO's, they're happy to proceed with the 00:00 logic
Fix error message not showing above field
This PR is prevent submission when test record time is missing
CB2-8776
Checklist