Skip to content

Commit

Permalink
fix(ux): 🐛 fix edit erroneously resuming time entry when using -t (
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNZL committed Jul 7, 2023
1 parent 91cd7ab commit 1efca81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TogglTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2136,7 +2136,7 @@ private async ValueTask<List<Result>> _GetEditResults(CancellationToken token, Q
}

var startTime = (timeEntry.StartDate + startTimeSpan) ?? timeEntry.StartDate;
var stopTime = ((timeEntry.StopDate ?? DateTimeOffset.UtcNow) + endTimeSpan);
var stopTime = ((timeEntry.StopDate ?? DateTimeOffset.UtcNow) + endTimeSpan) ?? timeEntry.StopDate;

results.Add(new Result
{
Expand Down

0 comments on commit 1efca81

Please sign in to comment.