From 93353da4c6093d8ce3db5b60d61369845b2fc232 Mon Sep 17 00:00:00 2001 From: manubo Date: Tue, 8 Oct 2019 13:22:09 +0200 Subject: [PATCH] Fix formatDuation without second argument --- src/js/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/utils/index.js b/src/js/utils/index.js index 7f3c7f5..69c58a7 100644 --- a/src/js/utils/index.js +++ b/src/js/utils/index.js @@ -122,7 +122,7 @@ export const extractAndSetTag = changeset => { export const formatDuration = ( durationInSeconds, - { settingTimeTrackingHHMM = true, showSeconds = true }, + { settingTimeTrackingHHMM = true, showSeconds = true } = {}, ) => { if (settingTimeTrackingHHMM) { const hours = Math.floor(durationInSeconds / 3600)