mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 22:05:07 +00:00
fix 500 on nx reason
This commit is contained in:
parent
bd4d90b557
commit
4e4f0e37ae
1 changed files with 4 additions and 2 deletions
|
|
@ -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 %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue