Skip to content

Commit

Permalink
Merge pull request #733 from woowacourse-teams/feat/#722
Browse files Browse the repository at this point in the history
 사용자 전환 QA를 통한 사용자 전환 분기처리 버그 수정
  • Loading branch information
jaeml06 authored Oct 24, 2024
2 parents 77cb433 + d0e1a75 commit 82e4427
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function OAuthMigrationResultPage() {
<LoginLayout.Main>
<div css={S.titleWrapper}>
<span css={S.title({ theme })}>
모우다를 사용할 준비가 되었어요
모우다를 사용할 <br /> 준비가 되었어요
</span>
<br />
<span css={S.subtitle({ theme })}>
Expand Down Expand Up @@ -65,7 +65,9 @@ export default function OAuthMigrationResultPage() {
<LoginLayout.Header></LoginLayout.Header>
<LoginLayout.Main>
<div css={S.titleWrapper}>
<span css={S.title({ theme })}>기록을 이전하는데 실패했어요!</span>
<span css={S.title({ theme })}>
기록을 이전하는데 <br /> 실패했어요!
</span>
<br />
<span css={S.subtitle({ theme })}>
혹시 이전 카카오 계정 가입자가 아닌가요?
Expand Down
7 changes: 4 additions & 3 deletions frontend/src/pages/Login/OAuthLoginPage/OAuthLoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function OAuthLoginPage() {
apple: async () => {
setAccessToken(codeOrToken);
const isConverted = urlParams.get('isConverted');
if (isConverted === 'true') {
if (isConverted === 'false') {
navigate(ROUTES.kakaoSelection);
} else {
navigate(ROUTES.darakbangSelectOption);
Expand All @@ -53,10 +53,11 @@ export default function OAuthLoginPage() {
google: async () => {
const response = await googleOAuth(codeOrToken);
setAccessToken(response.data.accessToken);
if (response.data.isConverted) {
if (!response.data.isConverted) {
navigate(ROUTES.kakaoSelection);
} else {
navigate(ROUTES.darakbangSelectOption);
}
navigate(ROUTES.darakbangSelectOption);
},
kakao: async () => {
kakaoMigration(codeOrToken);
Expand Down

0 comments on commit 82e4427

Please sign in to comment.