Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Remove event.preventDefault call#39

Open
azappella wants to merge 1 commit intoConsenSys-archive:masterfrom
azappella:patch-1
Open

Remove event.preventDefault call#39
azappella wants to merge 1 commit intoConsenSys-archive:masterfrom
azappella:patch-1

Conversation

@azappella
Copy link
Copy Markdown

Problem:

The onProfileFormSubmit function makes a redundant call to event.preventDefault()

  • event.preventDefault is already called inside handleFormSubmit (src/user/ui/ProfileForm.js)
  • event is never passed from the function which causes an error when trying to update the user name

Solution: removed the redundant event.preventDefault call

Problem: 

The onProfileFormSubmit function makes a redundant call to event.preventDefault()
- event.preventDefault is already called inside handleFormSubmit (src/user/ui/ProfileForm.js)
- event is never passed from the function which causes an error when trying to update the user name

Solution: removed the redundant event.preventDefault call
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant