From 5e8a040166c322ecf89c81f167d4f86431bb1c09 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Fri, 30 Nov 2018 18:46:06 -0500
Subject: [PATCH] attempted fix

---
 src/art/assistantArt.tw | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/art/assistantArt.tw b/src/art/assistantArt.tw
index 516de1971da..511da7a1d5a 100644
--- a/src/art/assistantArt.tw
+++ b/src/art/assistantArt.tw
@@ -119,12 +119,14 @@ window.assistantArt = function assistantArt(sizePlacement) {
 		}
         }
 
-		if (sizePlacement === 3) {
-			fileName = `<img src=${fileName} style='float:right; border:3px hidden'/>`;
-		} else if (V.imageChoice === 1) {
-			fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='282' height='602'/>`;
-		} else /* V.imageChoice === 0 */ {
-			fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='300' height='300'/>`;
+		if (filename !== "") {
+			if (sizePlacement === 3) {
+				fileName = `<img src=${fileName} style='float:right; border:3px hidden'/>`;
+			} else if (V.imageChoice === 1) {
+				fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='282' height='602'/>`;
+			} else /* V.imageChoice === 0 */ {
+				fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='300' height='300'/>`;
+			}
 		}
 	}
 	return fileName;
-- 
GitLab