Updated username validation for Twitter Badge
This commit is contained in:
+2
-2
@@ -236,8 +236,8 @@ const IndexPage = () => {
|
|||||||
if (social.github && isGitHubUsernameValid(social.github)) {
|
if (social.github && isGitHubUsernameValid(social.github)) {
|
||||||
generate()
|
generate()
|
||||||
}
|
}
|
||||||
} else if (data.twitterBadge && social.twitter) {
|
} else if (data.twitterBadge) {
|
||||||
if (isTwitterUsernameValid(social.twitter)) {
|
if (social.twitter && isTwitterUsernameValid(social.twitter)) {
|
||||||
generate()
|
generate()
|
||||||
}
|
}
|
||||||
} else if (social.github) {
|
} else if (social.github) {
|
||||||
|
|||||||
Reference in New Issue
Block a user