Skip to content

Commit

Permalink
fix(frontend): add to expired only current tasks bb-593
Browse files Browse the repository at this point in the history
  • Loading branch information
marharita08 committed Sep 27, 2024
1 parent a0142e8 commit d14e151
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/frontend/src/pages/tasks/tasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ const Tasks: React.FC = () => {
for (const task of tasks) {
const timeToDeadline = getMillisecondsLeft(currentTime, task.dueDate);

if (timeToDeadline < MillisecondsPerUnit.MINUTE) {
if (
timeToDeadline < MillisecondsPerUnit.MINUTE &&
task.status === TaskStatus.CURRENT
) {
expired.push(task);
} else {
active.push(task);
Expand Down

0 comments on commit d14e151

Please sign in to comment.