Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing/135 마이페이지 진단 기록 없을때 구분 && 진단결과의 "." 제거 #147

Merged
merged 3 commits into from
Aug 10, 2024

Conversation

Leewonchan14
Copy link
Member

PR type

  • Publishing
  • Bug fix

💻 작업사항

  • 마이페이지 진단 기록 없을때 구분
image image

💡 작성한 이슈 외에 작업한 사항

  • 진단기록 �볼때 새로고침 오류 해결
const { userId, isAutoLoginSuccess } = useRequireAuth();

새로고침시 자동로그인을 진행하는데 위처럼 isAutoLoginSuccess 이 됬는지 확인하는 코드 추가

  useEffect(() => {
    if (!isAutoLoginSuccess) return;
    const fetchResult = async () => {
      const res = await DiagnosisController.getRecentDiagnosis({
        userId,
      });
      console.log(res.data.result[1].totalScore);
      setRecentResult(res.data.result[1].totalScore ?? 0);
    };
    fetchResult();
  }, [isAutoLoginSuccess])

✔️ check list

  • 작성한 이슈의 내용을 전부 적용했나요?
  • 리뷰어를 등록했나요?

@Leewonchan14 Leewonchan14 self-assigned this Aug 9, 2024
@Leewonchan14 Leewonchan14 linked an issue Aug 9, 2024 that may be closed by this pull request
2 tasks
Copy link
Contributor

@heedong12 heedong12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Leewonchan14 Leewonchan14 merged commit 8d1396d into develop Aug 10, 2024
1 check passed
@Leewonchan14 Leewonchan14 deleted the publishing/135 branch August 10, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[publishing] 마이페이지 치매진단 기록 없는 경우
3 participants