Skip to content

Commit

Permalink
fix: kakao api test 환경에선 돌아가지 않도록 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhokim98 committed Sep 10, 2024
1 parent 7204776 commit 1196b0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}, []);
Expand Down

0 comments on commit 1196b0d

Please sign in to comment.