Skip to content

Commit

Permalink
fix: 앱 처음 진입 시, 지점 설정 안하고 예약 탭에서 처음 설정된 강남1호점 미팅룸 예약 페이지 진입 후 지점 상세보기…
Browse files Browse the repository at this point in the history
… 시 지점상세보기 페이지 이동안하는 문제 해결
  • Loading branch information
jiohjung98 committed Jun 10, 2024
1 parent 0dcab70 commit 2f537ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/reservation/meetingRoom/MeetingRoomInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const MeetingRoomInfo = () => {
const updatedTimeReserved = useBranchStore2((state) => state.updatedTimeReserved);

const currentBranch =
updatedTimeSelected && updatedTimeReserved && updatedTimeSelected > updatedTimeReserved
? selectedBranch
: reservedBranch;
updatedTimeSelected && updatedTimeReserved && updatedTimeSelected > updatedTimeReserved
? selectedBranch
: reservedBranch || selectedBranch;


console.log(`current Branch = ${currentBranch?.branchName}`);
Expand Down Expand Up @@ -132,7 +132,6 @@ const MeetingRoomInfo = () => {
const officeInfo = data.data;
console.log(officeInfo);
router.push({
// pathname: `/branches/${encodeURIComponent(officeInfo!.branchName)}`,
pathname: `/branches/${encodeURIComponent(currentBranch!.branchName)}`,
query: {
name: officeInfo.branchName,
Expand Down

0 comments on commit 2f537ab

Please sign in to comment.