From 06f9dc1a1325ac9c765d32e6f2d2a775e3d68c42 Mon Sep 17 00:00:00 2001 From: Louis Kirkham Date: Sun, 3 Dec 2023 13:34:41 +0000 Subject: [PATCH] Fix typo causing duplicate support letters --- app/views/qae_form/_supporter_fields.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/qae_form/_supporter_fields.html.slim b/app/views/qae_form/_supporter_fields.html.slim index 39c94654a..658c73940 100644 --- a/app/views/qae_form/_supporter_fields.html.slim +++ b/app/views/qae_form/_supporter_fields.html.slim @@ -48,5 +48,5 @@ li.js-add-example class="#{'read-only js-support-letter-received' if persisted}" - url = users_form_answer_support_letter_path(form_answer_id: @form_answer.id, id: supporter["support_letter_id"]) - else - url = "#" - = if current_user || policy(:support_letter).can_remove? + - if current_user || policy(:support_letter).can_remove? = link_to "Remove", url, class: "govuk-button govuk-button--warning remove-supporter remove-link js-remove-link", data: { url: url }, 'aria-label' => "Delete support letter from #{supporter["first_name"]} #{supporter["last_name"]}"