From dcacfbc47443593159bb4eb6adc00b895e876c21 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 22:33:23 +0530 Subject: [PATCH] chore: lint --- src/components/organisms/ApiKey.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/organisms/ApiKey.tsx b/src/components/organisms/ApiKey.tsx index 5b029d78..2729581e 100644 --- a/src/components/organisms/ApiKey.tsx +++ b/src/components/organisms/ApiKey.tsx @@ -36,9 +36,9 @@ const ApiKeyManager = () => { const [copySuccess, setCopySuccess] = useState(false); const { notify } = useGlobalInfoStore(); - - + + useEffect(() => { const fetchApiKey = async () => { @@ -53,7 +53,7 @@ const ApiKeyManager = () => { }; fetchApiKey(); - + }, []); const generateApiKey = async () => { @@ -61,7 +61,7 @@ const ApiKeyManager = () => { try { const { data } = await axios.post(`${apiUrl}/auth/generate-api-key`); setApiKey(data.api_key); - + notify('success', `Generated API Key successfully`); } catch (error: any) { notify('error', `Failed to generate API Key - ${error.message}`);