fix: missing return when data is handled

This commit is contained in:
Carlos Valente
2024-12-20 12:56:46 +01:00
committed by Carlos Valente
parent 88b114020b
commit 430b72c1d0
2 changed files with 2 additions and 0 deletions
@@ -55,6 +55,7 @@ export default function TimeInput<T extends string>(props: TimeInputProps<T>) {
// we dont know the values in the rundown, escalate to handler
if (newValue.startsWith('p') || newValue.startsWith('+')) {
submitHandler(name, newValue);
return true;
}
const valueInMillis = parseUserTime(newValue);
@@ -50,6 +50,7 @@ export default function TimeInputDuration(props: TimeInputDurationProps) {
// we dont know the values in the rundown, escalate to handler
if (newValue.startsWith('p') || newValue.startsWith('+')) {
onSubmit(newValue);
return;
}
const valueInMillis = parseUserTime(newValue);