diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 5378caf..32a012e 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "Pomodoro", - "version": "0.7.2" + "version": "0.7.3" }, "tauri": { "allowlist": { diff --git a/src/components/task/Tasks.svelte b/src/components/task/Tasks.svelte index 1888b22..b29f1be 100644 --- a/src/components/task/Tasks.svelte +++ b/src/components/task/Tasks.svelte @@ -16,7 +16,9 @@ export let reps: number; $: totalAct = data.appData.tasks.reduce((a, b) => a + b.act, 0); - $: totalEst = data.appData.tasks.reduce((a, b) => a + b.est, 0); + $: totalEst = data.appData.tasks + .filter((t) => !t.done) + .reduce((a, b) => a + b.est, 0); $: finishAtMinute = (() => { let rep = reps; let result = 0; @@ -76,37 +78,39 @@ config={data.config} /> {/each} -