Skip to content

Commit

Permalink
Overtime flag only appears if estimate is present
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJHockley committed Aug 21, 2020
1 parent d595f6d commit 1aa1391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function displayCardWarnings(taskLists, projectID) {

let flag = '';
if (!task.estimate || !task.estimate > 0) flag = '🤷‍♀️';
if (task?.time_tracked > task.estimate) flag += '🔥';
else if (task?.time_tracked > task.estimate) flag += '🔥';

if (flag.length > 0 || existingFlag) {
existingFlag ? updateDisplayElement(targetElement, flag)
Expand Down

0 comments on commit 1aa1391

Please sign in to comment.