aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/PollCard/PollCard.tsx4
-rw-r--r--src/pages/AuthPage/SignUpForm.tsx3
2 files changed, 3 insertions, 4 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';
diff --git a/src/pages/AuthPage/SignUpForm.tsx b/src/pages/AuthPage/SignUpForm.tsx
index 4a84830..25b79ff 100644
--- a/src/pages/AuthPage/SignUpForm.tsx
+++ b/src/pages/AuthPage/SignUpForm.tsx
@@ -38,8 +38,7 @@ const SignUpForm: React.FC<PropTypes> = ({ logIn }) => {
const email = emailRef.current?.value;
if (username && password) {
post('/users', { username, password, email }).then(() => {
- logIn(username, password).then(success => {
- });
+ logIn(username, password);
});
} else setError(true);
};