Telegram: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
In frontend/src/app/streams/create/page.tsx, the inline amount error renders with:
{formData.amount && !validateAmountInput(formData.amount, TOKEN_DECIMALS) && (
<p className="text-xs text-red-400">Amount must be greater than 0 with max {TOKEN_DECIMALS} decimals</p>
)}
validateAmountInput returns an error string when invalid and null when valid. So !validateAmountInput(...) is truthy exactly when the amount is valid — the red error appears for good input and disappears for bad input. The condition is inverted.
Acceptance criteria
Files to touch
frontend/src/app/streams/create/page.tsx
Out of scope
- The wizard's amount step (separate component).
Telegram: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
In
frontend/src/app/streams/create/page.tsx, the inline amount error renders with:validateAmountInputreturns an error string when invalid andnullwhen valid. So!validateAmountInput(...)is truthy exactly when the amount is valid — the red error appears for good input and disappears for bad input. The condition is inverted.Acceptance criteria
validateAmountInput(...)returns a non-null message, and display that message (instead of a generic hardcoded string)Files to touch
frontend/src/app/streams/create/page.tsxOut of scope