You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The JS code responsible for "validating" form inputs is being duplicated in the event listeners for the "Send" and "Download Form" button respectively.
Problem
The JS code responsible for "validating" form inputs is being duplicated in the event listeners for the "Send" and "Download Form" button respectively.
Code:
parley/scripts/form.js
Lines 333 to 391 in b93298b
parley/scripts/form.js
Lines 400 to 429 in b93298b
Solution
Refactor into a single function (e.g.
validateForm()
).The text was updated successfully, but these errors were encountered: