From 985b2e7f8254c9275a45677e549e4a8f8f948227 Mon Sep 17 00:00:00 2001 From: alexanderroese Date: Tue, 13 Aug 2024 23:10:14 +0200 Subject: [PATCH] add message empty space not allowed --- snippets/shx-3d-render-input.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index 8675669..993b60b 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -582,7 +582,7 @@ if (!emojisSupported && emojiRegex.test(value)) { inputLabel.textContent = 'Emojis werden bei diesem Typ nicht unterstützt. Bitte wechsle zu "Mit Hintergrund"'; inputLabel.style.color = 'red'; - } else if (!emojisSupported && text.indexOf(" ") !== -1) { + } else if (!emojisSupported && value.indexOf(" ") !== -1) { inputLabel.textContent = 'Leerzeichen werden bei diesem Typ nicht unterstützt. Bitte wechsle zu "Mit Hintergrund"'; inputLabel.style.color = 'red'; }