From 1196b0d0e78886a190490ea423d49942a0df4dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=A7=84=ED=98=B8?= Date: Tue, 10 Sep 2024 14:05:58 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20kakao=20api=20test=20=ED=99=98=EA=B2=BD?= =?UTF-8?q?=EC=97=90=EC=84=A0=20=EB=8F=8C=EC=95=84=EA=B0=80=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8F=84=EB=A1=9D=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/KakaoInitializer/KakaoInitializer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/KakaoInitializer/KakaoInitializer.tsx b/client/src/components/KakaoInitializer/KakaoInitializer.tsx index 862688724..199050133 100644 --- a/client/src/components/KakaoInitializer/KakaoInitializer.tsx +++ b/client/src/components/KakaoInitializer/KakaoInitializer.tsx @@ -2,7 +2,7 @@ import {useEffect} from 'react'; const KakaoInitializer = ({children}: React.PropsWithChildren) => { useEffect(() => { - if (!window.Kakao.isInitialized()) { + if (!window.Kakao.isInitialized() && process.env.NODE_ENV !== 'test') { window.Kakao.init(process.env.KAKAO_JAVASCRIPT_KEY); } }, []);