Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
amDeimos666 committed Jun 11, 2023
1 parent ff00dca commit dda1f2a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const ExplorationTimer: FC<TimerDisplayProps> = ({
setTimerDisplay(getTimeRemaining());
setTimeRemaining(timeRemaining - intervalMs);
}, intervalMs);
} else {
} else if (!isTimerActive && timeRemaining !== 0) {
if (interval !== undefined) {
clearInterval(interval);
}
Expand Down Expand Up @@ -106,6 +106,7 @@ export const ExplorationTimer: FC<TimerDisplayProps> = ({
.catch(() => {
log.error;
});
toast.info('start_exploration');
}
};

Expand All @@ -119,6 +120,7 @@ export const ExplorationTimer: FC<TimerDisplayProps> = ({
toast.error(result.message);
} else if (rosServiceState.matches('connected')) {
setIsTimerActive(true);
toast.info('isStartExplorationStarted');
}
};

Expand Down

0 comments on commit dda1f2a

Please sign in to comment.