Skip to content

Commit d143fa4

Browse files
committed
๐Ÿ› fix(#165): ์ตœ๊ทผ ๋กœ๊ทธ์ธ ์ •๋ณด ํด๋ผ์ด์–ธํŠธ ๋ Œ๋”๋ง ์ˆ˜์ •
1 parent 96f6929 commit d143fa4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

โ€Žsrc/components/signup/OauthButton.tsxโ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
ย (0)