Skip to content
Snippets Groups Projects
Commit 392b4aed authored by LAFORÊT Nicolas's avatar LAFORÊT Nicolas :rabbit2:
Browse files

:lipstick: fix price format in stock page

parent e812630d
Branches
1 merge request!7🔀 V1
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment