diff options
Diffstat (limited to 'src/components/PollCard')
-rw-r--r-- | src/components/PollCard/PollCard.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/PollCard/PollCard.tsx b/src/components/PollCard/PollCard.tsx index 65b3da1..f82091c 100644 --- a/src/components/PollCard/PollCard.tsx +++ b/src/components/PollCard/PollCard.tsx @@ -41,7 +41,7 @@ const useStyles = makeStyles(theme => ({ transitionDuration: '0.5s' }, highlight: { - backgroundColor: theme.palette.primary.main + ' !important' + backgroundColor: `${theme.palette.primary.main} !important` }, fillRateLine: { height: theme.spacing(2), @@ -72,7 +72,7 @@ const PollCard: React.FC<PropTypes> = ({ initialPoll, navigate }) => { const handleRight = () => vote('right'); const leftPercentage = Math.round(100 * (left.votes / (left.votes + right.votes))); - const rightPercentage = 100 - leftPercentage + const rightPercentage = 100 - leftPercentage; const dominant: Which = left.votes >= right.votes ? 'left' : 'right'; |