Fix unlogged print

This commit is contained in:
Marko Korhonen 2023-11-23 17:55:42 +02:00
parent bb79ecdaa1
commit aee473b93b
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -25,7 +25,7 @@ const output = (result: WtcPromptResult, config: WtcConfig) => {
log( log(
msg(MessageKey.unloggedToday), msg(MessageKey.unloggedToday),
unLoggedMinutes === 0 ? chalk.green(msg(MessageKey.none)) : chalk.red(fmtDuration(unLogged)), unLoggedMinutes === 0 ? chalk.green(msg(MessageKey.none)) : chalk.red(fmtDuration(unLogged)),
chalk.yellow(hoursRounded(unLogged)), unLoggedMinutes === 0 ? '' : chalk.yellow(hoursRounded(unLogged)),
); );
} else if (unLoggedMinutes < 0) { } else if (unLoggedMinutes < 0) {
log(chalk.red(msg(MessageKey.loggedOver, fmtDuration(unLogged))), chalk.yellow(hoursRounded(unLogged))); log(chalk.red(msg(MessageKey.loggedOver, fmtDuration(unLogged))), chalk.yellow(hoursRounded(unLogged)));