Skip to content

Commit

Permalink
Fix end display times
Browse files Browse the repository at this point in the history
  • Loading branch information
chand1012 committed Jan 5, 2024
1 parent b8f3eee commit 69bf5b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/transformers.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ async function fixupMinipool(obj) {

obj.errorCode = formatters.formatErrorMsg(obj.errorCode);

if (obj.endTime === 0 && obj.startTime !== 0) {
obj.endTime = obj.startTime + obj.duration;
if (obj.endTime === 0 && obj.initialStartTime !== 0) {
obj.endTime = obj.initialStartTime + obj.duration;
}

if (obj.startTime !== 0) {
Expand Down

0 comments on commit 69bf5b3

Please sign in to comment.