Skip to content

Commit

Permalink
Fix : 드라이버 프로필에서 코스 추가 페이지로 이동했을 때 지역이 안 보이는 현상 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
rangggu committed Jan 6, 2025
1 parent b2c1b22 commit 02b18dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/NewPartyPage/Region/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Region({ setRegion, member, driverId, date, driverInfo }: Props) {
driverId === "null"
)
setRegionData([...otherItems, ...lastItem]);
else if (driverInfo.driverId === 0) {
else if (driverInfo.driverId !== 0) {
setRegionData(
result.payload.filter((item: DriverInfoType) =>
driverInfo.region.includes(item.name)
Expand All @@ -68,7 +68,7 @@ function Region({ setRegion, member, driverId, date, driverInfo }: Props) {

useEffect(() => {
getPartyRegionListFunc();
}, [driverInfo]);
}, [driverInfo, driverId]);

return (
<>
Expand Down

0 comments on commit 02b18dd

Please sign in to comment.