From c9a6bebb35e7eb10992e22fbbefd788efd65fafc Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Tue, 27 Aug 2019 22:32:37 +0300 Subject: [PATCH] dont render background if it is not valid prop --- src/common/MetaPreview/MetaPreview.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/common/MetaPreview/MetaPreview.js b/src/common/MetaPreview/MetaPreview.js index 035112cbe..b10dcfecd 100644 --- a/src/common/MetaPreview/MetaPreview.js +++ b/src/common/MetaPreview/MetaPreview.js @@ -68,13 +68,18 @@ const MetaPreview = ({ className, compact = false, id, type, name, logo = '', ba }, []); return (
-
- {' -
+ { + typeof background === 'string' && background.length > 0 ? +
+ {' +
+ : + null + }
{ typeof logo === 'string' && logo.length > 0 ?