refactor: improve visibility of time-to-end

This commit is contained in:
Carlos Valente
2024-10-26 13:46:44 +02:00
committed by Carlos Valente
parent 83b9fde45e
commit b1bff22b84
4 changed files with 17 additions and 5 deletions
@@ -25,6 +25,7 @@ export default function TimerPreview() {
if (showTimerMessage) return 'Message';
if (phase === TimerPhase.Pending) return 'Standby to start';
if (phase === TimerPhase.Overtime && data.endMessage) return 'Custom end message';
if (timerType === TimerType.TimeToEnd) return 'Time to end';
return 'Timer';
})();