From f3ce9cc0ca0da912366effe38317775aeaf7c97f Mon Sep 17 00:00:00 2001 From: thepaperpilot <thepaperpilot@gmail.com> Date: Sun, 18 Dec 2022 18:05:43 -0600 Subject: [PATCH] Fix goal now appearing on progress bar while decorating --- src/data/common.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/data/common.tsx b/src/data/common.tsx index 51ee4bf..6d0bfb1 100644 --- a/src/data/common.tsx +++ b/src/data/common.tsx @@ -446,9 +446,15 @@ export function setUpDailyProgressTracker(options: { textStyle: options.textColor ? { color: options.textColor } : undefined, progress: progressFunc, display: jsx(() => - main.day.value === options.day ? ( + main.day.value === options.day || + main.currentlyMastering.value?.name === options.name ? ( <> - {formatWhole(total.value)}/{formatWhole(options.goal)} + {formatWhole(total.value)}/ + {formatWhole( + main.currentlyMastering.value?.name === options.name + ? options.masteryGoal ?? options.goal + : options.goal + )} </> ) : ( ""