Let updateDetails use data.email if possible (thanks @calc84maniac)

This commit is contained in:
calc84maniac
2016-02-11 10:34:21 -08:00
committed by abalabahaha
parent 9fc5a752f8
commit 701c0ca9c4
2 changed files with 2 additions and 2 deletions

View File

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