File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,9 +19,11 @@ const OauthButton = (props: OauthButtonProps) => {
1919 const searchParams = useSearchParams ( ) ;
2020 const url = searchParams . get ( 'url' ) ;
2121 const [ redirectUri , setRedirectUri ] = useState < string > ( '' ) ;
22+ const [ recentLogin , setRecentLogin ] = useState < string | null > ( null ) ;
2223
2324 useEffect ( ( ) => {
2425 if ( typeof window !== 'undefined' ) {
26+ setRecentLogin ( getRecentLogin ( ) ) ;
2527 setRedirectUri (
2628 window . location . protocol +
2729 '//' +
@@ -85,7 +87,7 @@ const OauthButton = (props: OauthButtonProps) => {
8587
8688 return (
8789 < Wrapper >
88- { loginType === getRecentLogin ( ) && < Bubble > ์ต๊ทผ์ ๋ก๊ทธ์ธํ์ด์</ Bubble > }
90+ { recentLogin === loginType && < Bubble > ์ต๊ทผ์ ๋ก๊ทธ์ธํ์ด์</ Bubble > }
8991 < SocialButton $bgColor = { bgColor } onClick = { handleLogin } >
9092 < SocialIcon src = { icon } width = { size } height = { size } alt = { loginType } />
9193 </ SocialButton >
You canโt perform that action at this time.
0 commit comments