pull/1896/head v1.1.1-beta.1
LASER-Yi 2 years ago
parent 3958986614
commit 5c1399e9f2

@ -47,7 +47,12 @@ const TimeOffsetForm: FunctionComponent<Props> = ({ selections, onSubmit }) => {
return (
<form
onSubmit={form.onSubmit(({ positive, hour, min, sec, ms }) => {
const action = convertToAction(hour, min, sec, ms);
let action: string;
if (positive) {
action = convertToAction(hour, min, sec, ms);
} else {
action = convertToAction(-hour, -min, -sec, -ms);
}
selections.forEach((s) =>
task.create(s.path, TaskName, mutateAsync, {

Loading…
Cancel
Save