Skip to content

bug:double '@' prefix in review live preview card and inconsistent handle formatting #7942

Description

@Kritika200520

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

  1. Navigate to the /reviewform page.
  2. In the "Platform & Handle" input field, type a handle starting with an @ symbol (e.g. @octocat).
  3. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions