fix(practice): remove redundant 'already at target' message

Return null instead of showing message when target is reached -
the success feedback is already shown elsewhere in the component.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock 2025-12-07 20:59:01 -06:00
parent 19169ad9fe
commit e9ccfb9186
1 changed files with 3 additions and 14 deletions

View File

@ -148,21 +148,10 @@ export function HelpAbacus({
}
}, [isDark])
// When there are no changes left (target reached), return null
// The success feedback is shown via showTargetReached prop below
if (!hasChanges) {
return (
<div
data-component="help-abacus"
data-status="complete"
className={css({
textAlign: 'center',
padding: '1rem',
color: isDark ? 'green.400' : 'green.600',
fontSize: '0.875rem',
})}
>
Already at target value
</div>
)
return null
}
return (