Skip to content

Commit

Permalink
Fix review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
salesfelipe committed Jan 21, 2025
1 parent 6f354d1 commit 24da0ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/ProductOpenGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ function productPrice({
}

function productCategories(product?: Product) {
if (!product || !product.categories || !product.categories.length) {
return [null]
if (!product?.categories?.length) {
return []
}

return product.categories.map(category => ({
Expand Down

0 comments on commit 24da0ec

Please sign in to comment.