From ff098241f1bab16732701ee0b23598124b9515bd Mon Sep 17 00:00:00 2001 From: pranalidhanavade Date: Wed, 9 Oct 2024 12:27:15 +0530 Subject: [PATCH] used utility function for handle alert component issue Signed-off-by: pranalidhanavade --- src/components/User/UserDashBoard.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/User/UserDashBoard.tsx b/src/components/User/UserDashBoard.tsx index d403f89a7..ccc4efa17 100644 --- a/src/components/User/UserDashBoard.tsx +++ b/src/components/User/UserDashBoard.tsx @@ -54,7 +54,7 @@ const UserDashBoard = () => { const [message, setMessage] = useState(''); const [ecoMessage, setEcoMessage] = useState(''); const [viewButton, setViewButton] = useState(false); - const [error, setError] = useState(''); + const [error, setError] = useState(''); const [currentPage, setCurrentPage] = useState(initialPageState); const [organizationsList, setOrganizationList] = useState | null>(null); @@ -450,6 +450,8 @@ const UserDashBoard = () => { ); }; + console.log("errror_:::::::::::", typeof error); + console.log("mesaage---:::::::::", typeof message); return ( <>