Fix unlogged print
This commit is contained in:
parent
bb79ecdaa1
commit
aee473b93b
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue