diff --git a/basic_stop_watch/src/StopWatch.js b/basic_stop_watch/src/StopWatch.js index 6ff838b..0908295 100644 --- a/basic_stop_watch/src/StopWatch.js +++ b/basic_stop_watch/src/StopWatch.js @@ -30,7 +30,7 @@ class StopWatch extends React.Component { onStart = () => { this.setState({ isStarted: true, - startTime: new Date(), + startTime: new Date() - this.state.currentTime - this.state.startTime, currentTime: new Date(), });