From d551657d99c3141e777ee567bb0f01e23eb05698 Mon Sep 17 00:00:00 2001 From: Jaroslav Drzik Date: Fri, 16 Feb 2024 17:24:53 +0100 Subject: [PATCH] fix for null length --- resources/js/Pages/IkeaRoot.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/Pages/IkeaRoot.vue b/resources/js/Pages/IkeaRoot.vue index c120ca6..d7cb48f 100644 --- a/resources/js/Pages/IkeaRoot.vue +++ b/resources/js/Pages/IkeaRoot.vue @@ -97,7 +97,7 @@ const tproducts = computed(() => { prod.calcPrice = Math.round(prod.calcPrice * currencyCoef.value * 100) / 100; prod.rate = currencyHash.value[prod.currency]; - prod.tag = prod.tag.replace(/_/g, " "); + if (prod.tag.length > 1) prod.tag = prod.tag.replace(/_/g, " "); return prod; }); });