Skip to content

Commit

Permalink
fix: Apply filter value changes (kookmin-sw#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjeongmin committed May 10, 2024
1 parent c08dc3c commit 01e8ac5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/entities/shared-posts-filter/shared-posts-filter.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export const useSharedPostsFilter = () => {
: [];

return {
roomTypes,
rentalTypes,
roomTypes: roomTypes.length === 0 ? undefined : roomTypes,
rentalTypes: rentalTypes.length === 0 ? undefined : rentalTypes,
expectedPaymentRange:
filter.dealInfo?.expectedFee != null
? {
Expand All @@ -100,7 +100,7 @@ export const useSharedPostsFilter = () => {
end: filter.roomInfo.size.high,
}
: undefined,
floorTypes,
floorTypes: floorTypes.length === 0 ? undefined : rentalTypes,
canPark: filter.extraInfo.주차가능,
hasAirConditioner: filter.extraInfo.에어컨,
hasRefrigerator: filter.extraInfo.냉장고,
Expand Down

0 comments on commit 01e8ac5

Please sign in to comment.