From 9fb062e9322598da5054b8bfaf5cffaebeb56834 Mon Sep 17 00:00:00 2001 From: Jover Date: Mon, 27 Jan 2020 15:40:20 -0800 Subject: [PATCH] hover: fix bug when authorInfo is null When check for `authorInfo` instead of `authorInfo.value` since `authorInfo` can be returned as `undefined`. --- src/components/tree/infoPanels/hover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tree/infoPanels/hover.js b/src/components/tree/infoPanels/hover.js index b00ab59a3..62f705357 100644 --- a/src/components/tree/infoPanels/hover.js +++ b/src/components/tree/infoPanels/hover.js @@ -269,7 +269,7 @@ const VaccineInfo = ({node}) => { const AttributionInfo = ({node}) => { const renderElements = []; const authorInfo = getFullAuthorInfoFromNode(node); - if (authorInfo.value) { + if (authorInfo) { renderElements.push(); }