From 0259d3a36b82d725f44ff41229b78c900b03e03c Mon Sep 17 00:00:00 2001 From: soleil00 <105858896+soleil00@users.noreply.github.com> Date: Mon, 8 Jul 2024 15:28:21 +0200 Subject: [PATCH] fixed bad naming --- src/components/cards/ProductCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/cards/ProductCard.tsx b/src/components/cards/ProductCard.tsx index d06dfc7..3d7f7fa 100644 --- a/src/components/cards/ProductCard.tsx +++ b/src/components/cards/ProductCard.tsx @@ -13,7 +13,7 @@ interface IProductCardProps { const ProductCard: React.FC = ({ product }) => { const [isHovered, setIsHovered] = useState(false); - const soleilFN = (price: number) => { + const formatPrice = (price: number) => { if (price < 1000) { return price.toString(); } @@ -97,7 +97,7 @@ const ProductCard: React.FC = ({ product }) => {

$ - {soleilFN(product.price)} + {formatPrice(product.price)}