Skip to content

Commit

Permalink
fix: change Email undefined in account settings (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
h27-webdev authored and gr2m committed Feb 19, 2018
1 parent 5552562 commit 0a22e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/assets/js/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ document.querySelector('form.change-password').addEventListener('submit', functi
document.querySelector('[data-action="show-change-email"]').addEventListener('click', function (event) {
event.preventDefault()
hoodie.account.get('username').then(function (username) {
document.querySelector('#input-change-email').value = hoodie.account.username
document.querySelector('#input-change-email').value = username
})
})

Expand Down

0 comments on commit 0a22e9f

Please sign in to comment.