From 81191dff1f08e6dc9991521935ea32163ab4ffa5 Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 12 Jan 2023 13:56:34 +0100 Subject: [PATCH] Experiment table - remove warning icon from due date for completed tasks [SCI-7755] --- app/views/experiments/_table_due_date_label.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/experiments/_table_due_date_label.html.erb b/app/views/experiments/_table_due_date_label.html.erb index cb309ed34..466d72b89 100644 --- a/app/views/experiments/_table_due_date_label.html.erb +++ b/app/views/experiments/_table_due_date_label.html.erb @@ -1,8 +1,8 @@ - <% if my_module.is_one_day_prior? %> + <% if my_module.is_one_day_prior? && !my_module.completed? %> <%= l(my_module.due_date, format: :full_date) %> - <% elsif my_module.is_overdue? %> + <% elsif my_module.is_overdue? && !my_module.completed? %> <%= l(my_module.due_date, format: :full_date) %> <% elsif my_module.due_date %>