From d29d612edb28bc804fd8e2b362df2c101ed9c174 Mon Sep 17 00:00:00 2001 From: Misode Date: Sat, 28 Dec 2024 00:46:39 +0100 Subject: [PATCH] Fix dependency label on modded generator cards --- src/app/components/generator/GeneratorCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/generator/GeneratorCard.tsx b/src/app/components/generator/GeneratorCard.tsx index dc03e8e66..96cfe4a18 100644 --- a/src/app/components/generator/GeneratorCard.tsx +++ b/src/app/components/generator/GeneratorCard.tsx @@ -53,7 +53,7 @@ export function GeneratorCard({ id, minimal }: Props) { return [] }, [gen]) - return {title}{icon && Icons[icon]}} overlay={gen.tags?.includes('partners') ? locale(`partner.${gen.id.substring(0, gen.id.indexOf('.'))}`) : versionText} link={cleanUrl(gen.url)}> + return {title}{icon && Icons[icon]}} overlay={gen.dependency ? locale(`partner.${gen.dependency}`) : versionText} link={cleanUrl(gen.url)}> {!gen.noPath &&

/{gen.path ?? gen.id}

} {tags.length > 0 &&
{tags.sort().map(tag => )}