Skip to content

Commit

Permalink
Fix invitation status
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Feb 27, 2025
1 parent 683d205 commit 850e476
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/invitation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def approve_expense
end

def status
'DELETED' if deleted_at.present?
return 'DELETED' if deleted_at.present?
data['status']
end

Expand Down
1 change: 1 addition & 0 deletions app/views/funds/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
<tbody>
<% @project_allocations.each_with_index do |project_allocation, i| %>
<% next if project_allocation.project_url.nil? %>
<% next if @allocation.completed? && !project_allocation.paid? %>

<!-- Main Row -->
<tr class="clickable-row <%= 'row-rejected' if project_allocation.project_funding_rejected %>" data-bs-toggle="collapse" data-bs-target="#details-<%= i %>" role="button" aria-controls="#details-<%= i %>">
Expand Down

0 comments on commit 850e476

Please sign in to comment.