Skip to content

Commit

Permalink
Fix: Self portal tooltip not working in the home page (#907)
Browse files Browse the repository at this point in the history
* fix self portal tooltip not working in the home page

* make portal_config_tooltip method in home helper null safe
  • Loading branch information
Bilelkihal authored Jan 9, 2025
1 parent 69402c5 commit 595ecb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/home_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def format_number_abbreviated(number)

def portal_config_tooltip(portal_name, &block)
portal_id = portal_name&.downcase
title = if federation_portal_status(portal_name: portal_id)
title = if (federation_portal_status(portal_name: portal_id) || portal_id.eql?(portal_name&.downcase))
render(
TurboFrameComponent.new(
id: "portal_config_tooltip_#{portal_id}",
Expand Down

0 comments on commit 595ecb9

Please sign in to comment.