Use the ID if the user doesn't have a display name
This commit is contained in:
parent
b26ed02eb3
commit
f5611e8b98
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ export default {
|
|||
let data = response.data;
|
||||
|
||||
// Set the Vue user object
|
||||
this.user.name = data.display_name;
|
||||
this.user.name = data.display_name || data.id;
|
||||
this.user.image = data.images.length > 0 ? data.images[0].url : ``;
|
||||
|
||||
}).catch((err) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue