Add config.defaults.hadLunch and rework lunch messages
This commit is contained in:
parent
91a7362495
commit
b08ab097ba
8 changed files with 60 additions and 24 deletions
|
@ -23,7 +23,7 @@ const output = (result: WtcPromptResult, config: WtcConfig) => {
|
|||
log(msg(MessageKey.workedToday), chalk.green(fmtDuration(worked)), chalk.yellow(hoursRounded(worked)));
|
||||
|
||||
if (hadLunch) {
|
||||
log(msg(MessageKey.unpaidLunch), chalk.green(fmtDuration(config.defaults.lunchBreakDuration)));
|
||||
log(msg(MessageKey.unpaidLunch), chalk.green(fmtDuration(config.unpaidLunchBreakDuration)));
|
||||
}
|
||||
|
||||
const unLoggedMinutes = unLogged.asMinutes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue