From 34d985b4fecfdc62cefba5d72767daaeb9b1085b Mon Sep 17 00:00:00 2001 From: Vanessa Lai Date: Tue, 16 Jul 2024 18:50:53 +0800 Subject: [PATCH] bug fix --- src/components/sellerDashboard/sellerDashboard.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/sellerDashboard/sellerDashboard.jsx b/src/components/sellerDashboard/sellerDashboard.jsx index d5895c8..e238222 100644 --- a/src/components/sellerDashboard/sellerDashboard.jsx +++ b/src/components/sellerDashboard/sellerDashboard.jsx @@ -13,7 +13,7 @@ import SimilarProducts from '../../components/recommendation/similarProducts/sim ChartJS.register(CategoryScale, LinearScale, PointElement, LineElement, BarElement, Title, Tooltip, Legend, BoxPlotController, BoxAndWiskers); -function SellerDashboard({ listingID }) { +export default function SellerDashboard({ listingID }) { const [listingData, setListingData] = useState(null); const [similarListings, setSameProductType] = useState([]); const [priceData, setPriceData] = useState(null); @@ -543,6 +543,4 @@ function SellerDashboard({ listingID }) { )} ); -}; - -export default SellerDashboard; +}; \ No newline at end of file