Skip to content

Commit e9be6df

Browse files
committed
Fix typescript-eslint/no-unused-expressions
1 parent ca42133 commit e9be6df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/scripts/components/auth/LoginContainer.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ const LoginContainer = () => {
3737

3838
setMessage('스텔라 IT으로 로그인을 진행하고 있습니다. 잠시만 기다려주세요.');
3939

40-
code ? onLogin() : onRedirect();
40+
if (code) {
41+
onLogin();
42+
} else {
43+
onRedirect();
44+
}
4145
}, [code, logout]);
4246

4347
return (

0 commit comments

Comments
 (0)