From 392b4aedb13d2dec86a6537610e2a7637490acb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAFOR=C3=8AT=20Nicolas?= <nlaforet@etu.unistra.fr> Date: Fri, 17 Dec 2021 11:29:14 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20fix=20price=20format=20in=20stoc?= =?UTF-8?q?k=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/stock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/stock.tsx b/src/pages/stock.tsx index 11a5a53..68238ff 100644 --- a/src/pages/stock.tsx +++ b/src/pages/stock.tsx @@ -121,7 +121,7 @@ const Stock = () => { <tr key={product.name} className={productIdx % 2 === 0 ? 'bg-white' : 'bg-gray-50'}> <td className="px-4 py-4 whitespace-nowrap text-sm font-medium text-gray-900">{product.name}</td> <td className="px-4 py-4 whitespace-nowrap text-sm text-gray-500">{product.category}</td> - <td className="px-4 py-4 whitespace-nowrap text-sm text-gray-500">{product.price.toFixed(2)}€ / {product?.subscriberPrice?.toFixed(2) ?? product.price.toFixed(2)} €</td> + <td className="px-4 py-4 whitespace-nowrap text-sm text-gray-500">{product.price.toFixed(2).replace(".", ",")}€ / {product?.subscriberPrice?.toFixed(2).replace(".", ",") ?? product.price.toFixed(2).replace(".", ",")} €</td> <td className="px-4 py-4 whitespace-nowrap text-sm text-gray-500"> {product.edit ? <input -- GitLab