Skip to content

[Bug] ReferenceError: userHandle is not defined in NewTutorial onSubmitΒ #274

@gautamsidhwani29

Description

@gautamsidhwani29

Describe the bug
A ReferenceError occurs in the NewTutorial component when a user attempts to create a new tutorial. The onSubmit function attempts to access a variable named userHandle which is not defined within the function scope or the component's props.

To Reproduce
Steps to reproduce the behavior:

  1. Log in to the application
  2. Navigate to the User Dashboard and Click on the New Codelabz Button.
  3. Fill in the Title, Summary, and select an Owner.
  4. Click the Create button.
  5. Check the browser console to see the Uncaught ReferenceError: userHandle is not defined.

Expected behavior
When a user fills out the form and clicks the "Create" button, the website should successfully save the new tutorial. It should find the user's nickname (handle) from the saved login data and use it to finish making the tutorial.

Screenshots
Cypress Failure :

Image

Console Error :

Image

Desktop :

  • OS: Ubuntu (Linux)
  • Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    UI/UXbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions