Skip to content

Commit

Permalink
πŸ› μ—…κ·Έλ ˆμ΄λ“œλ‘œ μΈν•œ νƒ€μž… μ—λŸ¬ μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
giwan-dev committed Jun 30, 2021
1 parent 58fb360 commit 7509aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/date-picker/src/range-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ function RangePicker({
}

onDatesChange({
startDate: nextFrom && moment(nextFrom).format('YYYY-MM-DD'),
endDate: nextTo && moment(nextTo).format('YYYY-MM-DD'),
startDate: nextFrom ? moment(nextFrom).format('YYYY-MM-DD') : null,
endDate: nextTo ? moment(nextTo).format('YYYY-MM-DD') : null,
nights: nextTo && nextFrom ? moment(nextTo).diff(nextFrom, 'days') : 0,
})
},
Expand Down

0 comments on commit 7509aa6

Please sign in to comment.