diff --git a/app/assets/javascripts/profile/profile.js.es6 b/app/assets/javascripts/profile/profile.js.es6 index c16eb93a2ddc851e7b92425e5a30a153ec1a148c..b2307be73ad0f7dd323cd606765bd7c8df547e49 100644 --- a/app/assets/javascripts/profile/profile.js.es6 +++ b/app/assets/javascripts/profile/profile.js.es6 @@ -1,7 +1,7 @@ ((global) => { class Profile { - constructor({ form }) { + constructor({ form } = {}) { this.onSubmitForm = this.onSubmitForm.bind(this); this.form = form || $('.edit-user'); this.bindEvents();