aboutsummaryrefslogtreecommitdiff
path: root/src/components/Timer
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Timer')
-rw-r--r--src/components/Timer/Timer.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/Timer/Timer.js b/src/components/Timer/Timer.js
index b10936f..367cce5 100644
--- a/src/components/Timer/Timer.js
+++ b/src/components/Timer/Timer.js
@@ -1,6 +1,7 @@
import React, { useState, useEffect } from 'react';
import styled from 'styled-components';
+import {post} from '../../requests';
const Timer = () => {
const SPACE = 32
@@ -35,10 +36,10 @@ const Timer = () => {
return resultTime;
}), 10))
} else {
- clearInterval(timer)
+ clearInterval(timer);
setRunning(false);
startingTime = 0;
- console.log(time)
+ post('solutions/', {result: time});
return false;
}
}