Only show recently used tags hint when they are present (#32120)

pull/2860/head
Matt Jankowski 2024-09-27 04:18:42 -04:00 committed by GitHub
parent c9b0699964
commit 675ec1a0ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 10 deletions

View File

@ -10,16 +10,17 @@ module SettingsHelper
end
def featured_tags_hint(recently_used_tags)
safe_join(
[
t('simple_form.hints.featured_tag.name'),
safe_join(
links_for_featured_tags(recently_used_tags),
', '
),
],
' '
)
recently_used_tags.present? &&
safe_join(
[
t('simple_form.hints.featured_tag.name'),
safe_join(
links_for_featured_tags(recently_used_tags),
', '
),
],
' '
)
end
def session_device_icon(session)