Skip to content

Commit

Permalink
fix: key error
Browse files Browse the repository at this point in the history
SVA-1429
  • Loading branch information
ardasnturk committed Sep 27, 2024
1 parent a43663b commit c1e7cf3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/CardListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,24 @@ const renderCardContent = (item, horizontal, sue) => {
borderRadius={sue ? 0 : imageBorderRadius}
childrenContainerStyle={stylesWithProps({ aspectRatio, horizontal }).image}
containerStyle={[styles.imageContainer, styles.sueImageContainer, imageStyle]}
key={picture.url}
source={{ uri: picture.url }}
/>
),
subtitle: () =>
!!subtitle && (
<RegularText small style={[generalStyle, subtitleStyle]}>
<RegularText key={subtitle} small style={[generalStyle, subtitleStyle]}>
{subtitle}
</RegularText>
),
title: () =>
!!title && (
<BoldText style={[generalStyle, titleStyle]}>
<BoldText key={title} style={[generalStyle, titleStyle]}>
{horizontal ? (title.length > 60 ? title.substring(0, 60) + '...' : title) : title}
</BoldText>
),
topTitle: () => (
<RegularText small style={[!!topTitleStyle && topTitleStyle]}>
<RegularText key={topTitle} small style={[!!topTitleStyle && topTitleStyle]}>
{topTitle}
</RegularText>
),
Expand Down

0 comments on commit c1e7cf3

Please sign in to comment.