Use format function

This commit is contained in:
Marko Korhonen 2023-11-11 18:07:51 +02:00
parent 13443a4d26
commit 8ac794ac7b
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -23,7 +23,7 @@ const main = async () => {
let workDayDuration: Duration | undefined = undefined;
const durationAnswer = await rl.question(
`How long is your work day today, excluding the lunch break? [${defaultWorkDayDuration.format('HH:mm')}] `,
`How long is your work day today, excluding the lunch break? [${formatDuration(defaultWorkDayDuration)}] `,
);
if (durationAnswer !== '') {
workDayDuration = parseDuration(durationAnswer);