Merge pull request #19549 from ramonlsouza/timer-reset-on-update
fix: stop and reset timer when time is changed
This commit is contained in:
commit
a2fe718799
@ -49,6 +49,8 @@ const TimerContainer = ({ children, ...props }) => {
|
||||
|
||||
const setTime = (time) => {
|
||||
timerSetTime({ variables: { time } });
|
||||
timerStop();
|
||||
timerReset();
|
||||
};
|
||||
|
||||
const setHours = (hours, time) => {
|
||||
|
Loading…
Reference in New Issue
Block a user