Skip to content

Commit

Permalink
fix: use ?? instead of || for skeleton in AppCard.tsx (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh authored Oct 17, 2023
1 parent 2b6879e commit 356ef76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/main/AppCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const AppCard = ({
/>
<CardContent sx={{ width: '100%' }}>
<Typography gutterBottom variant="subtitle2" component="div">
{name || <Skeleton />}
{name ?? <Skeleton />}
</Typography>
<Typography
variant="body2"
Expand All @@ -70,7 +70,7 @@ const AppCard = ({
WebkitLineClamp: 3,
}}
>
{description || <Skeleton height={45} />}
{description ?? <Skeleton height={45} />}
</Typography>
</CardContent>
</StyledCardActionArea>
Expand Down

0 comments on commit 356ef76

Please sign in to comment.