Skip to content

Commit 08d5799

Browse files
Nwagba OkechukwuNwagba Okechukwu
authored andcommitted
refactor: rename isVideo to isVideoCard and also checking og_scrape_url
1 parent 15b2dcf commit 08d5799

File tree

1 file changed

+2
-2
lines changed
  • package/src/components/Attachment

1 file changed

+2
-2
lines changed

package/src/components/Attachment/Card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const CardWithContext = <
157157

158158
const defaultOnPress = () => !error && openURL && openURL();
159159

160-
const isVideo = type === 'video';
160+
const isVideoCard = type === 'video' && og_scrape_url;
161161

162162
return (
163163
<TouchableOpacity
@@ -205,7 +205,7 @@ const CardWithContext = <
205205
source={{ uri: makeImageCompatibleUrl(uri) }}
206206
style={[styles.cardCover, cover, stylesProp.cardCover]}
207207
>
208-
{isVideo ? (
208+
{isVideoCard ? (
209209
<View style={[styles.playButtonStyle, roundedView, { backgroundColor: white }]}>
210210
<Play height={height} pathFill={black} width={width} />
211211
</View>

0 commit comments

Comments
 (0)