Skip to content

Commit

Permalink
fix(trackerList): fix no trackers detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Clm-Roig committed Mar 18, 2022
1 parent 1ad2710 commit 9bd2695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/trackerList/TrackerList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ function TrackerList() {
</IconButton>
</Box>

{trackers && trackers.length === 0 && (
<Typography>{"Vous n'avez pas encore de trackers."}</Typography>
{((trackers && trackers.length === 0) || !trackers) && (
<Typography align="center">{"Vous n'avez pas encore de trackers."}</Typography>
)}

<Card sx={cardSxProp}>
Expand Down

0 comments on commit 9bd2695

Please sign in to comment.