From f4231db8bf9c94cdf0ac58876b84b32100dc1e16 Mon Sep 17 00:00:00 2001 From: Stone Filipczak <51140224+stonefilipczak@users.noreply.github.com> Date: Mon, 16 Dec 2024 09:58:17 -0500 Subject: [PATCH] Update app/views/submissions/_judging_status.html.erb Co-authored-by: Stephen Chudleigh --- app/views/submissions/_judging_status.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/submissions/_judging_status.html.erb b/app/views/submissions/_judging_status.html.erb index c15eeca1..d343290c 100644 --- a/app/views/submissions/_judging_status.html.erb +++ b/app/views/submissions/_judging_status.html.erb @@ -27,8 +27,8 @@ type="checkbox" name="submission[judging_status]" value="winner" - <%= unless @submission.judging_status.in?(["selected", "winner"]) then "disabled" end %> - <%= if @submission.judging_status == "winner" then "checked" end %> + <%= "disabled" unless @submission.judging_status.in?(["selected", "winner"]) %> + <%= "checked" if @submission.judging_status == "winner" %> data-action="change->submission-details#winnerSubmit" />