fix 500 on nx reason

This commit is contained in:
24c02 2026-02-25 15:51:12 -05:00
parent bd4d90b557
commit 4e4f0e37ae

View file

@ -9,8 +9,10 @@
is_current = defined?(current_identity) && activity.trackable&.identity == current_identity
%>
rejected <%= is_current ? "your" : "#{activity.trackable.identity.first_name} #{activity.trackable.identity.last_name}'s" %> <%= verification_text %><%
unless activity.parameters[:reason].nil?
%> for <%= Verification::DocumentVerification::REJECTION_REASON_NAMES[activity.parameters[:reason]].downcase %><%
reason = activity.parameters[:reason]
if reason.present?
reason_name = Verification::DocumentVerification::REJECTION_REASON_NAMES[reason] || reason
%> for <%= reason_name.downcase %><%
end
%>.
<% end %>