Improve stop time print

This commit is contained in:
Marko Korhonen 2023-11-22 21:06:10 +02:00
parent ab51b4c11d
commit 312ac4e819
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -78,9 +78,7 @@ const ui = async () => {
if (askInput.stopTime) { if (askInput.stopTime) {
const stoppedAnswer = await rl.question( const stoppedAnswer = await rl.question(
`What time did you stop working (default is current time if you didn't stop yet)? [${formatTime( `What time did you stop working? [${formatTime(defaults.stopTime)}] `,
defaults.stopTime,
)}] `,
); );
if (stoppedAnswer !== '') { if (stoppedAnswer !== '') {