From 640d5652079acc6e84cf705f00cfe3e4a767c146 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Mon, 28 Jan 2019 22:54:36 -0500 Subject: [PATCH] made extension chip showing/hiding consistent --- src/views/preview/presentation.jsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/preview/presentation.jsx b/src/views/preview/presentation.jsx index 8756fc1c4..d330c2aff 100644 --- a/src/views/preview/presentation.jsx +++ b/src/views/preview/presentation.jsx @@ -187,7 +187,7 @@ const PreviewPresentation = ({ const extensionChips = ( - {extensions.map(extension => ( + {extensions && extensions.map(extension => ( {/* eslint-disable max-len */} - {extensions && + {(extensions && extensions.length) ? ( {extensionChips} - } + ) : null} {showInstructions && (
@@ -522,9 +522,11 @@ const PreviewPresentation = ({ - - {extensionChips} - + {(extensions && extensions.length) ? ( + + {extensionChips} + + ) : null} {showModInfo &&