From dc9840ed9258d8fd2705e8df96d7d08ae18ecc7a Mon Sep 17 00:00:00 2001 From: Ahmed Date: Sat, 20 Jan 2024 22:24:45 -0500 Subject: [PATCH] Fix out of stock badge --- web/src/components/PartsGridUnit/PartsGridUnit.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/PartsGridUnit/PartsGridUnit.tsx b/web/src/components/PartsGridUnit/PartsGridUnit.tsx index 58b7658..f8553ac 100644 --- a/web/src/components/PartsGridUnit/PartsGridUnit.tsx +++ b/web/src/components/PartsGridUnit/PartsGridUnit.tsx @@ -21,7 +21,7 @@ const thumbnail = (url: string) => { const PartsGridUnit = ({ part }: Props) => { return ( -
+
{

{part.name} {part.availableStock == 0 ? ( -
Out of stock
+
Out of stock
) : (
{part.availableStock + ' left'}