From 1f3681ef508a824807411ab9511313413b0c3cc5 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 2 Jul 2022 11:50:12 +0200 Subject: [PATCH] Remove unnecessary value from reason field --- app/views/modal/_ban.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/modal/_ban.haml b/app/views/modal/_ban.haml index cf87597c..f6467375 100644 --- a/app/views/modal/_ban.haml +++ b/app/views/modal/_ban.haml @@ -21,7 +21,7 @@ .form-check.form-check-inline.mt-3 - for unit in %i[hours days weeks months] = f.radio_button :duration_unit, unit, label: unit, checked: true - = f.text_field :reason, placeholder: t('.reason'), value: user.bans.current.first&.reason + = f.text_field :reason, placeholder: t('.reason') .modal-footer %button.btn.btn-default{ name: 'stop-time', type: :button, data: { dismiss: :modal } }= t 'views.actions.close' = f.submit t('.hammertime'), class: 'btn btn-primary', name: 'hammer-time'