react-auth-box icon indicating copy to clipboard operation
react-auth-box copied to clipboard

Remove event.preventDefault call

Open azappella opened this issue 7 years ago • 0 comments
trafficstars

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

azappella avatar Oct 20 '18 10:10 azappella