Skip to content

fix(frontend): remove stray Token label from handleWithdraw#927

Open
Kaycee276 wants to merge 1 commit into
LabsCrypt:mainfrom
Kaycee276:fix-issue-862-upstream
Open

fix(frontend): remove stray Token label from handleWithdraw#927
Kaycee276 wants to merge 1 commit into
LabsCrypt:mainfrom
Kaycee276:fix-issue-862-upstream

Conversation

@Kaycee276

Copy link
Copy Markdown
Contributor

Description

Closes #862

Problem

The handleWithdraw function inside frontend/src/app/streams/[id]/page.tsx contained an accidental, leftover JavaScript label (Token:) immediately before the setWithdrawing(true) state update. This stray label served no functional purpose and triggered linting and typecheck warnings (such as no-unused-labels).

Solution

Removed the stray Token: label. The remainder of the handleWithdraw functionality is completely untouched and continues to successfully handle stream withdrawals while properly toggling the withdrawing loading state.

Verification

  • Confirmed that the handleWithdraw logic functions normally.
  • Ran the frontend workspace linters (npm run lint --workspace=frontend) and verified that the no-unused-label and no-unused-expressions warnings are resolved and the build now passes lint checks cleanly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Frontend] Stray Token: labeled statement left inside handleWithdraw on stream detail page

1 participant