Skip to content

[Frontend] StreamCreationWizard shadows global 'timeout' with a state variable #582

Description

@ogazboiz

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

Why this matters

In frontend/src/components/stream-creation/StreamCreationWizard.tsx:

const [timeout, setTimeoutError] = useState(false);

Naming the state variable timeout shadows the global timeout/relatives and reads confusingly next to the setTimeout calls in the same component (startPolling uses setTimeout). The setter is even named setTimeoutError, implying the intended state name was timeoutError/isTimeout.

Acceptance criteria

  • Rename the state variable to something like isTimeout/timeoutError (matching the setter)
  • Update all references (the {timeout ? ... : ...} JSX branches)
  • No behaviour change

Files to touch

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

Out of scope

Metadata

Metadata

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