Skip to content

[Frontend] Remove dead no-op validation block in AmountStep.handleAmountChange #573

Description

@ogazboiz

Telegram: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

frontend/src/components/stream-creation/AmountStep.tsx has a handleAmountChange whose precision-validation branch is an empty block containing only comments:

if (newValue && !hasValidPrecision(newValue, 7)) {
  // Parent component should handle this error
  // This validation can be used to show inline error if needed
}

It does nothing — hasValidPrecision is called and the result discarded. Either wire it to surface an inline error, or drop the dead branch (and the now-unused hasValidPrecision import).

Acceptance criteria

  • Remove the empty if block (and unused import) OR implement the inline precision error
  • Lint passes with no unused import

Files to touch

  • frontend/src/components/stream-creation/AmountStep.tsx

Out of scope

  • The wizard's step-level validation in StreamCreationWizard.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programfrontendFrontend related tasksgood first issueGood for newcomersrefactorRefactoring existing code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions