Skip to content

Commit

Permalink
Merge pull request #517 from AI4Bharat/resolved_error_while_last_card…
Browse files Browse the repository at this point in the history
…_seconds_part_edit

CL-586 fixed error while editing the "seconds" part in last card and (.000) missing in video duration issue
  • Loading branch information
AlpanaMajhi authored Dec 12, 2023
2 parents e927c99 + 2131b8e commit 2c59143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,13 @@ export const getUpdatedTime = (value, type, time, index, startEnd) => {
const durationOfStartTime = DT.t2d(subtitles[index].start_time);

if (durationOfCurrent > durationOfVideo) {
newTime = videoDuration;
newTime = DT.d2t(durationOfVideo);
}

if (durationOfCurrent <= durationOfStartTime) {
let modifiedDuration = DT.t2d(subtitles[index].start_time);
modifiedDuration = modifiedDuration + 1;
newTime = DT.t2d(modifiedDuration);
newTime = DT.d2t(modifiedDuration);
}
}

Expand Down

0 comments on commit 2c59143

Please sign in to comment.