diff --git a/src/svg.ts b/src/svg.ts index 0b4f1cb..928eed2 100644 --- a/src/svg.ts +++ b/src/svg.ts @@ -14,7 +14,7 @@ export function generateBadge( const size = preset.avatar.size const { login } = sponsor let name = (sponsor.name || sponsor.login).trim() - const url = sponsor.linkUrl || sponsor.login ? `https://github.com/${sponsor.login}` : undefined + const url = sponsor.linkUrl || (sponsor.login ? `https://github.com/${sponsor.login}` : undefined) if (preset.name && preset.name.maxLength && name.length > preset.name.maxLength) { if (name.includes(' '))