Skip to content

Commit f51a70c

Browse files
committed
fix: 로딩 페이지 return으로 다이얼로그 안보이던 문제 해결
1 parent a7bef68 commit f51a70c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/login/LoginButton.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,13 @@ const LoginButton = () => {
5050
);
5151
};
5252

53-
if (isPending) {
54-
return <Loading size={'lg'} color={'primary'} display={'spinner'} />;
55-
}
56-
5753
return (
5854
<>
5955
<button type={'button'} onClick={onClick} className="btn btn-outline btn-primary w-full">
6056
로그인
6157
</button>
6258
<Dialog ref={dialogRef} desc={dialogMessage}></Dialog>
59+
{isPending && <Loading size={'lg'} color={'primary'} display={'spinner'} />}
6360
</>
6461
);
6562
};

0 commit comments

Comments
 (0)