fix setUsername()

This commit is contained in:
Neto Becker
2016-02-03 12:41:19 -02:00
parent 9173ded903
commit 8d5949842c
2 changed files with 2 additions and 2 deletions

View File

@@ -969,7 +969,7 @@ export default class InternalClient {
//def updateDetails
updateDetails(data) {
if(!email) {
if(!this.email) {
throw new Error("Can't use updateDetails because only a token has been used for login!");
}
return this.apiRequest("patch", Endpoints.ME, true, {