Fix goal now appearing on progress bar while decorating

This commit is contained in:
thepaperpilot 2022-12-18 18:05:43 -06:00
parent 98a8681711
commit f3ce9cc0ca

View file

@ -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
)}
</>
) : (
""