Skip to content

Commit 7a8f625

Browse files
committed
Added null check and alt attribute for logo
1 parent 71636f5 commit 7a8f625

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/Story.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,10 @@ const Story = (props) => {
194194
</>
195195
}
196196
<img
197-
src={story.product.logo.url}
197+
src={story.product.logo?.url}
198198
className='preview image'
199199
style={{ width: '150px' }}
200+
alt={story.product.Name}
200201
/>
201202
</div>
202203
</div>

0 commit comments

Comments
 (0)