Skip to content

Commit

Permalink
fix: always use github link (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
kecrily authored Jan 12, 2023
1 parent f4543d2 commit ad135a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(' '))
Expand Down

0 comments on commit ad135a3

Please sign in to comment.