Skip to content

hide remaining time countdown for completed tasks#1678

Open
Abhishek2005-ard wants to merge 1 commit into
aryandas2911:mainfrom
Abhishek2005-ard:fix/task-preview-completed-countdown
Open

hide remaining time countdown for completed tasks#1678
Abhishek2005-ard wants to merge 1 commit into
aryandas2911:mainfrom
Abhishek2005-ard:fix/task-preview-completed-countdown

Conversation

@Abhishek2005-ard

Copy link
Copy Markdown
Contributor

Description

On the Dashboard's TaskPreview card, the remaining time/countdown was displayed even for tasks already marked as "Completed". A completed task should not display remaining time or show "Overdue" status.

This PR updates the remaining time condition in the component to check that the task status is not "Completed".

Changes Made

  • Modified frontend/src/components/Dashboard/TaskPreview.jsx to verify that task.status !== "Completed" before rendering the countdown or overdue text.

Verification & Testing

  • Ran frontend linter: npm run lint (Passed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant