aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Timer/Timer.tsx
diff options
context:
space:
mode:
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));
});