remove open content fallback description from catalog card

This commit is contained in:
ShivaniKhaire 2026-10-17 15:40:31 +05:30
parent be19a39127
commit 348adf88ba
1 changed files with 6 additions and 4 deletions

View File

@ -22,7 +22,7 @@ export function ModuleCatalogCardRenderer({
}: CollectionItemRendererProps) {
const attributes = item.attributes;
const title = asString(attributes.name) || item.title;
const label = asString(attributes.content_label) || item.summary || "Open content";
const label = asString(attributes.content_label) || item.summary || null;
return (
<Pressable
@ -36,9 +36,11 @@ export function ModuleCatalogCardRenderer({
<View style={styles.textContainer}>
<Text style={styles.title}>{title}</Text>
<Text style={styles.description} numberOfLines={1}>
{label}
</Text>
{label ? (
<Text style={styles.description} numberOfLines={1}>
{label}
</Text>
) : null}
</View>
<ContentCountBadge