Skip to content

Commit

Permalink
Fix dependency label on modded generator cards
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Dec 27, 2024
1 parent 2bca1f1 commit d29d612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/generator/GeneratorCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function GeneratorCard({ id, minimal }: Props) {
return []
}, [gen])

return <Card title={<>{title}{icon && Icons[icon]}</>} overlay={gen.tags?.includes('partners') ? locale(`partner.${gen.id.substring(0, gen.id.indexOf('.'))}`) : versionText} link={cleanUrl(gen.url)}>
return <Card title={<>{title}{icon && Icons[icon]}</>} overlay={gen.dependency ? locale(`partner.${gen.dependency}`) : versionText} link={cleanUrl(gen.url)}>
{!gen.noPath && <p class="card-subtitle">/{gen.path ?? gen.id}</p>}
{tags.length > 0 && <div class="badges-list">
{tags.sort().map(tag => <Badge label={tag} />)}
Expand Down

0 comments on commit d29d612

Please sign in to comment.