Skip to content

Commit

Permalink
Fix banner image if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-LHOSTE committed Mar 11, 2024
1 parent 204290c commit 69dd124
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/navigation/checkout/components/RestaurantProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ function RestaurantProfile({ restaurant, onInfo }) {
<Image
style={styles.banner}
resizeMode="cover"
source={{ uri: restaurant.bannerImage }}
source={{
uri: restaurant.bannerImage
? restaurant.bannerImage
: restaurant.image,
}}
alt="Banner"
/>
<View style={styles.detailsWrapper}>
Expand Down

0 comments on commit 69dd124

Please sign in to comment.