From 13965616d1a93de2b9d09d9373530702f3dcbd0f Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Thu, 12 Aug 2021 21:58:22 +0900 Subject: [PATCH] Fix Nico not showing up all the time. --- src/DEFAULTS.js | 2 +- src/TestPanel.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DEFAULTS.js b/src/DEFAULTS.js index aee0955..cb75e80 100644 --- a/src/DEFAULTS.js +++ b/src/DEFAULTS.js @@ -2,7 +2,7 @@ const NICONICONII = process.env.PUBLIC_URL+"/icons/nicodotpng.png.png" function DisplayIcon(icon) { //console.log(icon) - return icon?process.env.PUBLIC_URL+icon:NICONICONII + return icon&&icon.length>0?process.env.PUBLIC_URL+icon:NICONICONII } export {NICONICONII,DisplayIcon}; \ No newline at end of file diff --git a/src/TestPanel.js b/src/TestPanel.js index 8c2c2c7..4d16695 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -595,7 +595,7 @@ AUGMENT }} /> -