From 96991230adfb7d96b13d2e42e99139c7fe8e0759 Mon Sep 17 00:00:00 2001 From: james hadfield Date: Fri, 27 Mar 2020 15:10:03 +1300 Subject: [PATCH] tweak nextstrain specific ncov byline This changes the behavior so that we only show the "enabled by data from gisaid" byline if a buildUrl is present, which means the nextstrain app embedded in the GISAID site doesn't show this byline. --- src/components/info/byline.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/info/byline.js b/src/components/info/byline.js index 6d126cfe3..77d755fea 100644 --- a/src/components/info/byline.js +++ b/src/components/info/byline.js @@ -42,10 +42,13 @@ const Byline = ({width, metadata}) => {
{renderAvatar(t, metadata)} {renderMaintainers(t, metadata)} - - {" Enabled by data from "} - gisaid-logo - + { + metadata.buildUrl && + + {" Enabled by data from "} + gisaid-logo + + }
); }