From 065ca7912a7003231b492f597c355a70484bf54f Mon Sep 17 00:00:00 2001
From: natdeanlewissoftwire <nat.dean-lewis@softwire.com>
Date: Wed, 16 Nov 2022 17:18:16 +0000
Subject: [PATCH] feat: add dynamic status

---
 app/views/schemes/_scheme_list.html.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/schemes/_scheme_list.html.erb b/app/views/schemes/_scheme_list.html.erb
index 8a4ca5e31..9d8789727 100644
--- a/app/views/schemes/_scheme_list.html.erb
+++ b/app/views/schemes/_scheme_list.html.erb
@@ -25,7 +25,7 @@
           <% row.cell(text: simple_format(scheme_cell(scheme), { class: "govuk-!-font-weight-bold" }, wrapper_tag: "div")) %>
           <% row.cell(text: scheme.id_to_display) %>
           <% row.cell(text: scheme.locations&.count) %>
-          <% row.cell(text: status_tag("active")) %>
+          <% row.cell(text: status_tag(scheme.status)) %>
         <% end %>
       <% end %>
     <% end %>