From f24ea161fd2aef6ba75418c965d444ccbfd53fac Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 25 Jun 2020 15:51:51 +0300 Subject: style: fix linting erros --- src/components/PollCard/PollCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components') 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 = ({ 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'; -- cgit v1.2.3