From f5611e8b9813984c9ba4c005ad4eeba3c2025269 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 14 Aug 2020 22:24:36 -0600 Subject: [PATCH] Use the ID if the user doesn't have a display name --- src/components/ControlBar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ControlBar.vue b/src/components/ControlBar.vue index dcd9687..433ce0d 100644 --- a/src/components/ControlBar.vue +++ b/src/components/ControlBar.vue @@ -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) => {