diff options
author | LASER-Yi <[email protected]> | 2022-07-04 21:04:14 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2022-07-04 21:04:14 +0800 |
commit | 5c1399e9f281a67aa9905adf9d998171f66a20fd (patch) | |
tree | 8bf0e4b3bf37ed37f5611f14f3d69ce4b7b8d6bd | |
parent | 39589866140e6cd9abb6ceac9534740423d56984 (diff) | |
download | bazarr-5c1399e9f281a67aa9905adf9d998171f66a20fd.tar.gz bazarr-5c1399e9f281a67aa9905adf9d998171f66a20fd.zip |
Fix #1894v1.1.1-beta.1
-rw-r--r-- | frontend/src/components/forms/TimeOffsetForm.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/frontend/src/components/forms/TimeOffsetForm.tsx b/frontend/src/components/forms/TimeOffsetForm.tsx index cdd095bdc..132539bea 100644 --- a/frontend/src/components/forms/TimeOffsetForm.tsx +++ b/frontend/src/components/forms/TimeOffsetForm.tsx @@ -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, { |