Skip to content

Commit

Permalink
fix(webapp): added validation on bp profile page (#995)
Browse files Browse the repository at this point in the history
* fix(enviroment): change env value

* fix(hasura): add permissions tables

* fix(comments): fix comments section

* fix(hyperion): fix codefactor issues

* fix(hyperion): fix codefactor issues

* fix(hasura): delete migration restriction

* fix(hyperion): fix updater flows

* feat(hapi): created eosrate stats api endpoint

* fix(hapi): fix codefactor error

* fix(webapp): added validation on bp profile page
  • Loading branch information
AngeloCG97 authored Nov 24, 2022
1 parent 2e34eca commit da8019b
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions webapp/src/components/CommentCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,27 +213,28 @@ const CommentCard = ({ producer = {} }) => {
<Grid container>
<Grid item md={8} className={classes.center}>
<Box pt={1} display={isMobile ? 'block' : 'flex'}>
{Object.entries(comment.user_ratings[0].ratings).map(
(param, index) => (
<div key={index}>
<Box
width={isMobile ? '90px' : 'auto'}
display='inline-block'
>
<Typography
variant='body3'
textTransform='capitalize'
mr={1}
{comment?.user_ratings[0]?.ratings &&
Object.entries(comment?.user_ratings[0]?.ratings).map(
(param, index) => (
<div key={index}>
<Box
width={isMobile ? '90px' : 'auto'}
display='inline-block'
>
{param[0]}:
<Typography
variant='body3'
textTransform='capitalize'
mr={1}
>
{param[0]}:
</Typography>
</Box>
<Typography variant='body4' mr={2}>
{param[1]}
</Typography>
</Box>
<Typography variant='body4' mr={2}>
{param[1]}
</Typography>
</div>
)
)}
</div>
)
)}
</Box>
</Grid>
<Grid item md={4} className={classes.box}>
Expand Down

0 comments on commit da8019b

Please sign in to comment.