aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Timer/Timer.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-03-21 16:11:31 +0300
committereug-vs <eug-vs@keemail.me>2020-03-21 16:11:31 +0300
commit0f6c4e7e4d44314707535e2d7e3aba7b638cd2dd (patch)
tree85d063c88d2a3c637f2fd1222f06d55594e683ea /src/pages/Timer/Timer.tsx
parent0267191d92814e753b966ce3bdfbd9b804b313d7 (diff)
downloadchrono-cube-ui-0f6c4e7e4d44314707535e2d7e3aba7b638cd2dd.tar.gz
fix: add more missing types :ok_hand:
Diffstat (limited to 'src/pages/Timer/Timer.tsx')
-rw-r--r--src/pages/Timer/Timer.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/Timer/Timer.tsx b/src/pages/Timer/Timer.tsx
index 3ceb674..a890815 100644
--- a/src/pages/Timer/Timer.tsx
+++ b/src/pages/Timer/Timer.tsx
@@ -37,7 +37,7 @@ const Timer: React.FC<PropTypes> = ({ user, recentSolutions, setRecentSolutions,
const classes = useStyles();
const registerResult = (result: string): void => {
- const solution = { author_id: user.id, result };
+ const solution = { 'author_id': user.id, result };
post('solutions/', solution).then(response => {
setRecentSolutions([response.data].concat(recentSolutions));
});