From 75dc22652c80c82062335375c40a3d62512a8eb7 Mon Sep 17 00:00:00 2001 From: ppoffice Date: Mon, 2 Nov 2020 20:48:17 -0500 Subject: [PATCH] fix(widget): hide follow button for empty follow link --- layout/widget/profile.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/widget/profile.jsx b/layout/widget/profile.jsx index bb6d2cb..aa11b29 100644 --- a/layout/widget/profile.jsx +++ b/layout/widget/profile.jsx @@ -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 };