Skip to content

Commit

Permalink
check length if available
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil-narayana-klevu committed Apr 2, 2024
1 parent 6e330b1 commit 33e86af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/react-klevu-ui/src/routes/ProductPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function ProductPage() {
style={{ maxWidth: "100%", width: "100%" }}
/>
<div>
{product.shortDesc.length > 0 ? (
{product.shortDesc?.length > 0 ? (
<p>{product.shortDesc}</p>
) : (
<Fragment>
Expand Down
2 changes: 1 addition & 1 deletion examples/react/src/routes/ProductPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function ProductPage() {
/>
</Grid>
<Grid item xs={12} sm={6}>
{product.shortDesc.length > 0 ? (
{product.shortDesc?.length > 0 ? (
<p>{product.shortDesc}</p>
) : (
<Fragment>
Expand Down

0 comments on commit 33e86af

Please sign in to comment.