Fixed no rating yet display.
This commit is contained in:
@@ -89,7 +89,8 @@ export default function ProductInfo({ item }: { item: Item }) {
|
||||
<Box display="flex" alignItems="center" gap={1}>
|
||||
<Rating value={item.rating} precision={0.5} readOnly />
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
({item.rating} / 5)
|
||||
{item.rating > 0 ? `(${item.rating} / 5)`: t('noRatingsYet')}
|
||||
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user