mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 14:14:17 +00:00
refactor: improve visibility of time-to-end
This commit is contained in:
committed by
Carlos Valente
parent
83b9fde45e
commit
b1bff22b84
@@ -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';
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user