diff --git a/webroot/js/app.js b/webroot/js/app.js
index 9fe34ca40..5b5598049 100644
--- a/webroot/js/app.js
+++ b/webroot/js/app.js
@@ -387,9 +387,8 @@ export default class App extends Component {
const bgLogo = { backgroundImage: `url(${smallLogo})` };
const bgLogoLarge = { backgroundImage: `url(${largeLogo})` };
- const tagList = !tags.length
- ? null
- : tags.map(
+ const tagList = (tags !== null && tags.length > 0)
+ ? tags.map(
(tag, index) => html`
`
- );
-
- const socialIconsList = !socialHandles.length
- ? null
- : socialHandles.map(
- (item, index) => html`
-
- <${SocialIcon} platform=${item.platform} url=${item.url} />
-
- `
- );
+ )
+ : null;
+
+ const socialIconsList = (function () {
+ if (socialHandles === null || socialHandles.length === 0) {
+ return null;
+ }
+
+ const list = socialHandles.map(
+ (item, index) => html`
+
+ <${SocialIcon} platform=${item.platform} url=${item.url} />
+
+ `
+ );
+
+ return html`
+ Follow me:
+
+ ${list}
+
+ `;
+ })();
const mainClass = playerActive ? 'online' : '';
const streamInfoClass = streamOnline ? 'online' : ''; // need?
@@ -517,15 +532,7 @@ export default class App extends Component {
>${streamerName}
-
- Follow me:
-
- ${socialIconsList}
-
+ ${socialIconsList}