Skip to content

Commit

Permalink
refactor: window.Kakao를 optional로 타입 수정 및 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
Puterism committed Feb 3, 2024
1 parent e21de1c commit f4a257f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/admin/src/pages/Login/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { PATH } from '../../constants/routes';

declare global {
interface Window {
Kakao: {
Kakao?: {
Auth: {
authorize: (params: {
redirectUri: string;
Expand Down Expand Up @@ -43,7 +43,7 @@ const LoginPage = () => {
<Styled.LoginButtonContainer>
<Styled.KakaoLoginButton
onClick={() => {
window.Kakao.Auth.authorize({ redirectUri });
window.Kakao?.Auth.authorize({ redirectUri });
}}
>
<Styled.LoginButtonIcon>
Expand Down

0 comments on commit f4a257f

Please sign in to comment.