From bc220180c4cf3f7f942f40291d8fd92885087d90 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Thu, 29 May 2025 10:12:56 +0530 Subject: [PATCH] corrected state name, mismatched --- src/hooks/useDirectory.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useDirectory.js b/src/hooks/useDirectory.js index df352b98..0854d543 100644 --- a/src/hooks/useDirectory.js +++ b/src/hooks/useDirectory.js @@ -72,7 +72,7 @@ export const useBuckets = () => { }; export const useContactProfile = (id) => { - const [conatProfile, setContactProfile] = useState(null); + const [contactProfile, setContactProfile] = useState(null); const [loading, setLoading] = useState(false); const [Error, setError] = useState(""); @@ -105,7 +105,7 @@ export const useContactProfile = (id) => { } }, [id]); - return { conatProfile, loading, Error }; + return { contactProfile, loading, Error }; }; export const useContactNotes = (id, IsActive) => {