-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Refactor/#352] 공연 및 스케쥴의 종료와 매진과 관련된 로직 서버에서 받아온 값으로 수정 #358
Conversation
PR 작성하느라 고생 많았어요!! 라벨 잘 지정되었는지 확인 한 번 해 주기 🫶 |
Quality Gate failedFailed conditions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
문제 없어 보여서 어푸할게요!!! 최고개발자핑
const lastPerformanceDate = new Date( | ||
data.scheduleList[data?.scheduleList.length - 1].performanceDate | ||
); | ||
const isBookingAvailable = data?.scheduleList[data?.scheduleList.length - 1]?.dueDate >= 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p5) 와웅 당신은 천재입니다...... 가독성 레전드 이렇게 하나씩 섬세한 게 레전드 개발자를 만들어주는 거군아....... 배우겟슴미다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p5) 박수치고 갑니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P5) 정말 가독성 좋네요 배워갑니다 !
|
||
if (nowDate > lastPerformanceDate) { | ||
if (!isBookingAvailable) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p5) 레전드 섬세 뽀이... 확실히 메인으로 돌아가는 것보다 공연으로 돌아가는 게 좋을 것 같아요!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코리할게 없네용 LGTM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!111
const lastPerformanceDate = new Date( | ||
data.scheduleList[data?.scheduleList.length - 1].performanceDate | ||
); | ||
const isBookingAvailable = data?.scheduleList[data?.scheduleList.length - 1]?.dueDate >= 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p5) 박수치고 갑니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ! 문제 없어서 깔끔하게 어푸하고 갑니다~~
고생하셨어요 !!
src/pages/gig/Gig.tsx
Outdated
// 현재 시간이 마지막 공연 시간보다 크면 예매 버튼 비활성화 | ||
const isBookDisabled = nowDate > lastPerformanceDate; | ||
const isBookDisabled = data?.scheduleList[data?.scheduleList.length - 1]?.dueDate < 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p5) 굿굿~ 보안성이 올라갔네요!
const lastPerformanceDate = new Date( | ||
data.scheduleList[data?.scheduleList.length - 1].performanceDate | ||
); | ||
const isBookingAvailable = data?.scheduleList[data?.scheduleList.length - 1]?.dueDate >= 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P5) 정말 가독성 좋네요 배워갑니다 !
📌 관련 이슈번호
🎟️ PR 유형
어떤 변경 사항이 있나요?
✅ Key Changes
기존의 클라이언트 측에서 new Date()로 설정했을 경우, 갤럭시 폰의 경우 시간을 바꿔서 악용할 수 있을 수 있었습니다.
이에 따라서 서버에서 받아온 데이터로 공연과 스케쥴의 종료 및 매진 여부를 정하도록 변경하였습니다.