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

[온보딩] 사파리에서 날짜 형식 NaN, undefined 뜨는 현상 수정 #451

Merged
merged 8 commits into from
Feb 29, 2024

Conversation

ExceptAnyone
Copy link
Member

@ExceptAnyone ExceptAnyone commented Feb 29, 2024

이슈 넘버

구현 사항

  • 사파리에서 날짜 형식 NaN, undefined 뜨는 현상 수정
  • [ ]
  • [ ]
  • [ ]

Need Review

  • ~ 부분 이렇게 구현했어요, 피드백 부탁해요!

작업하기 편하게 하기 위해서, 이미 머지된 다른 브랜치에서의 작업내용을 복붙해서 진행했어요! 그래서 file changed가 5로 되어 있는데, 사실상 Step06와 ParticipantView만 봐주셔도 될거같습니다!
이 부분에서도 날짜 형식에 원래 ' . ' 을 사용하던 것을 ' - '로 바꿔주니 사파리에서 바로 인식되더라구요!

관련 링크 첨부합니다!!

https://velog.io/@pjhyng0125/js-Date-object-생성-시-IOS-safari-스크립트-오류-발생-특정-날짜의-요일-정보-반환-함수

📸 스크린샷

Reference

@ExceptAnyone ExceptAnyone added the fix 🛠️ Something isn't working label Feb 29, 2024
@ExceptAnyone ExceptAnyone self-assigned this Feb 29, 2024
Copy link

github-actions bot commented Feb 29, 2024

PR Preview Action v1.4.6
🚀 Deployed preview to https://SWEET-DEVELOPERS.github.io/sweet-client/pr-preview/pr-451/
on branch gh-pages at 2024-02-29 13:05 UTC

Copy link
Contributor

@urjimyu urjimyu left a comment

Choose a reason for hiding this comment

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

모바일 브라우저마다 대응하는 게 까다로운데 정말 고생하셨어요!!

@@ -39,8 +39,8 @@ const OnboardingFinal = (props: OnboardingFinalProps) => {
new Date(onboardingInfo.tournamentStartDate),
DURATION_MAPPING[onboardingInfo.tournamentDuration as keyof typeof DURATION_MAPPING] as number,
);
const formattedEndDate = format(tournamentEndDate, 'yyyy-MM-dd');
Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분이 브라우저 이슈 때문에 생긴 수정 사항이군요!

Copy link
Member Author

Choose a reason for hiding this comment

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

맞아여 ㅠ PR 내용 조금 더 자세하게 수정하고 관련 링크 첨부했는데 한 번 확인해보셔도 좋을 것 같습니다!!

@ExceptAnyone ExceptAnyone merged commit 5547bdf into develop Feb 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 🛠️ Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants