fix(widget): hide follow button for empty follow link

This commit is contained in:
ppoffice 2020-11-02 20:48:17 -05:00
parent 5a141b5eff
commit 75dc22652c
No known key found for this signature in database
GPG Key ID: B33335481CC0D498
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ Profile.Cacheable = cacheComponent(Profile, 'widget.profile', props => {
url: url_for('/tags')
}
},
followLink: url_for(follow_link),
followLink: follow_link ? url_for(follow_link) : undefined,
followTitle: __('widget.follow'),
socialLinks
};