fix for null length

This commit is contained in:
2024-02-16 17:24:53 +01:00
parent 6e94d5e2d5
commit d551657d99

View File

@@ -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;
});
});