diff --git a/frontend/application/components/ProductPage.tsx b/frontend/application/components/ProductPage.tsx index d8fe376d..31fd0e85 100644 --- a/frontend/application/components/ProductPage.tsx +++ b/frontend/application/components/ProductPage.tsx @@ -136,7 +136,7 @@ export default function ProductPage({ const router = useRouter(); const [product, setProduct] = useState(initialProduct ?? null); const [allProducts, setAllProducts] = useState([]); - const [isLoading, setIsLoading] = useState(true); + const [isLoading, setIsLoading] = useState(!initialProduct); const [itemQuantity, setItemQuantity] = useState(1); const [showRefillModal, setShowRefillModal] = useState(false); const [isMounted, setIsMounted] = useState(false);