Description
When a user fills out the testimonial submission form, the live preview card on the right side of the page display double @ prefixes (e.g., @@username) if the user inputs their handle with an @ symbol.
Steps to Reproduce
- Navigate to the
/reviewform page.
- In the "Platform & Handle" input field, type a handle starting with an
@ symbol (e.g. @octocat).
- Observe the live preview card on the right.
Expected Behavior
The handle in the live preview card should display as @octocat.
Screenshots / Logs
In app/reviewform/page.tsx, the live preview card unconditionally prepends an @ symbol to the user-entered handle:
<p className="text-xs text-gray-500 dark:text-gray-500">
@{form.handle || 'handle'}
</p>
### GitHub Username (If applicable)
Kritika200520
### Environment
Chrome
Description
When a user fills out the testimonial submission form, the live preview card on the right side of the page display double
@prefixes (e.g.,@@username) if the user inputs their handle with an@symbol.Steps to Reproduce
/reviewformpage.@symbol (e.g.@octocat).Expected Behavior
The handle in the live preview card should display as
@octocat.Screenshots / Logs
In app/reviewform/page.tsx, the live preview card unconditionally prepends an
@symbol to the user-entered handle: