diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-07-05 13:56:03 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-07-05 13:56:03 +0300 |
commit | 9f1ca7dbfea7cb7d6a04097168fbf988b89b40b7 (patch) | |
tree | 56990f2b4146580ce53d2fc4071cc4742247f29b /src | |
parent | e152be099965df95621635a2453f19f90f7223b2 (diff) | |
download | which-ui-9f1ca7dbfea7cb7d6a04097168fbf988b89b40b7.tar.gz |
hide 0 feedback rates
Diffstat (limited to 'src')
-rw-r--r-- | src/pages/HomePage/HomePage.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/HomePage/HomePage.tsx b/src/pages/HomePage/HomePage.tsx index 5a33b42..51553c2 100644 --- a/src/pages/HomePage/HomePage.tsx +++ b/src/pages/HomePage/HomePage.tsx @@ -116,10 +116,10 @@ const HomePage: React.FC = () => { <img src={`${process.env.PUBLIC_URL}/which-logo-512.png`} alt="logo" className={classes.logo} /> </Grid> <Grid item> - {rating && <Rating value={rating} readOnly size="large" />} + {rating!==0 && <Rating value={rating} readOnly size="large" />} </Grid> <Grid item> - {rating && ( + {rating!==0 && ( <Typography variant="h5" className={classes.score}> User score: {rating.toFixed(1)} </Typography> |