Skip to content

Commit

Permalink
Merge pull request #97 from Duri-Salon/hotfix/quotation
Browse files Browse the repository at this point in the history
[hotfix] salon
  • Loading branch information
leejin-rho authored Dec 20, 2024
2 parents 9a57cff + a67c8fe commit 7228bbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/duri/src/pages/Auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ const AuthPage = () => {
const [query] = useSearchParams();
const providerId = query.get('providerId') || '';

const { data, error, isSuccess } = useDuriNaverLogin(providerId);
const { data, error } = useDuriNaverLogin(providerId);

useEffect(() => {
if (error) {
window.alert('로그인에 실패했습니다.');
} else if (isSuccess && data) {
} else if (data) {
localStorage.setItem(`${data.client}`, data.token);
if (data.newUser) {
navigate('/onboarding');
Expand Down
4 changes: 2 additions & 2 deletions apps/salon/src/pages/Auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ const AuthPage = () => {
const [query] = useSearchParams();
const providerId = query.get('providerId') || '';

const { data, error, isSuccess } = useSalonNaverLogin(providerId);
const { data, error } = useSalonNaverLogin(providerId);

useEffect(() => {
if (error) {
window.alert('로그인에 실패했습니다.');
} else if (isSuccess && data) {
} else if (data) {
localStorage.setItem(`${data.client}`, data.token);
if (data.newUser) {
navigate('/onboarding');
Expand Down

0 comments on commit 7228bbc

Please sign in to comment.