Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
johnofsydney committed Jun 13, 2024
1 parent 4f6f4ea commit 9b6e154
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/components/common/money_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def template
p { money_in }

# TODO: make this work for people as well
if money_in.present? && entity.is_a?(Group)
if money_in.present? && entity.is_a?(Group) # charts only work for groups for now (need to refactor those controllers)
turbo_frame(id: 'money_in_charts', src: lazy_load_group_path, loading: :lazy) do
p do
p { 'Loading Chart...'}
Expand All @@ -31,7 +31,7 @@ def template
p { money_out }

# TODO: make this work for people as well
if money_out.present? && entity.is_a?(Group)
if money_out.present? && entity.is_a?(Group) # charts only work for groups for now (need to refactor those controllers)
turbo_frame(id: 'money_out_charts', src: lazy_load_group_path, loading: :lazy) do
p do
p { 'Loading Chart...'}
Expand Down

0 comments on commit 9b6e154

Please sign in to comment.