Skip to content

Commit

Permalink
Update invitation status display logic to handle nil status
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Mar 6, 2025
1 parent 4cf38d4 commit 7f27ffb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/admin/invitations/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@
<span class='invitation-status label-rejected'>Rejected</span>
<% elsif invitation.deleted_at.present? %>
<span class='invitation-status label-deleted'>Deleted</span>
<% elsif invitation.status != 'DRAFT' %>
<% elsif invitation.status.nil? %>
<span class='invitation-status label-pending'>Pending</span>
<% else %>
<span class='invitation-status label-info'>
<%= link_to invitation.status, invitation.html_url %>
</span>
<% else %>
<span class='invitation-status label-pending'>Pending</span>
<% end %>
</td>
</tr>
Expand Down

0 comments on commit 7f27ffb

Please sign in to comment.