Skip to content

Commit

Permalink
Couldn't set new username because it would default to credentials in …
Browse files Browse the repository at this point in the history
…all cases
  • Loading branch information
sdkayy authored and timolins committed Feb 5, 2019
1 parent e8a4c7c commit f1b3934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class Instagram {
form: {
first_name: name,
email,
username: this.credentials.username || username,
username: username || this.credentials.username,
phone_number: phoneNumber,
gender,
biography,
Expand Down

0 comments on commit f1b3934

Please sign in to comment.