1
0
Fork 0
mirror of https://github.com/thepaperpilot/Advent-Incremental.git synced 2025-03-28 03:38:46 +00:00

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, textStyle: options.textColor ? { color: options.textColor } : undefined,
progress: progressFunc, progress: progressFunc,
display: jsx(() => 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
)}
</> </>
) : ( ) : (
"" ""