Updated username validation for Twitter Badge

This commit is contained in:
Sunit Shirke
2020-10-04 12:36:42 +05:30
committed by GitHub
parent 5b7b83804a
commit 4a1e6736ae
+2 -2
View File
@@ -236,8 +236,8 @@ const IndexPage = () => {
if (social.github && isGitHubUsernameValid(social.github)) {
generate()
}
} else if (data.twitterBadge && social.twitter) {
if (isTwitterUsernameValid(social.twitter)) {
} else if (data.twitterBadge) {
if (social.twitter && isTwitterUsernameValid(social.twitter)) {
generate()
}
} else if (social.github) {