Merge pull request #360 from msiqu/patch-1

fix follow button link for non-english languages
This commit is contained in:
Christian Bundy 2020-03-26 17:46:15 -07:00 committed by GitHub
commit 3ada298d53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -631,7 +631,8 @@ exports.authorView = ({
relationship.following === true &&
relationship.blocking === false;
const contactFormType = areFollowing ? i18n.unfollow : i18n.follow;
const contactFormType = areFollowing ? "unfollow" : "follow";
const contactFormTypeLabel = i18n[contactFormType];
const contactForm =
relationship === null
@ -645,7 +646,7 @@ exports.authorView = ({
{
type: "submit",
},
contactFormType
contactFormTypeLabel
)
);