Prevent display error when no parole for an artist

This commit is contained in:
2023-03-19 21:35:33 +04:00
parent ff7377f20a
commit cb049886bb
2 changed files with 26 additions and 20 deletions
+10 -6
View File
@@ -85,12 +85,16 @@ export default function AwtisDetay({anAwtis}) {
</AccordionDetails>
</Accordion>
) : (
<>
<Typography gutterBottom textAlign='center' variant='body1' component='h2'><strong>Parole</strong></Typography>
<Paper>
<MizikLis paroles={paroles.data} />
</Paper>
</>
paroles.data.length === 0 ? (
<Typography gutterBottom textAlign='center' variant='body1' component='h2'><strong>Aucune parole pour le moment</strong></Typography>
) : (
<>
<Typography gutterBottom textAlign='center' variant='body1' component='h2'><strong>Parole</strong></Typography>
<Paper>
<MizikLis paroles={paroles.data} />
</Paper>
</>
)
)}
</Box>
</Grid>