Skip to content

Commit

Permalink
Add return
Browse files Browse the repository at this point in the history
to ensure process stops here if in development environment.
  • Loading branch information
zaziemo committed Feb 10, 2025
1 parent 2e2d37f commit 273b04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/profiles_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def topic_link_color(topic)

def profile_image_link(profile)
if Rails.env.development?
link_to(image_tag('avatar.png', alt: 'avatar', class: 'photo--grey card-img-top'), profile, class: "p-0")
return link_to(image_tag('avatar.png', alt: 'avatar', class: 'photo--grey card-img-top'), profile, class: "p-0")
end

if profile.image.attached?
Expand Down

0 comments on commit 273b04a

Please sign in to comment.