fix: increase max value for the grace period
- increase max value for the grace period as same as it was before in the legacy experience
This commit is contained in:
committed by
Muhammad Faraz Maqsood
parent
8e1e2fdb46
commit
951b707c7d
@@ -17,7 +17,7 @@ export function formatTime(time) {
|
||||
* @returns {boolean} - returns `true` if `inputStr` is a valid time, else `false`.
|
||||
*/
|
||||
export function timerValidation(inputStr, setShowSavePrompt, setIsError) {
|
||||
const timePattern = /^(?:[01]\d|2[0-3]):[0-5]\d$/;
|
||||
const timePattern = /^(?:\d{2,3}):[0-5]\d$/;
|
||||
|
||||
const isValid = timePattern.test(inputStr);
|
||||
setShowSavePrompt(isValid);
|
||||
|
||||
Reference in New Issue
Block a user