Skip to content

Commit

Permalink
Update CarFilter.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Sep 21, 2023
1 parent 647bb9f commit 614c5eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/CarFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import LocationSelectList from './LocationSelectList'
import DateTimePicker from './DateTimePicker'
import { FormControl, Button } from '@mui/material'
import * as bookcarsTypes from 'bookcars-types'
import * as bookcarsHelper from 'bookcars-helper'

import '../assets/css/car-filter.css'

Expand Down Expand Up @@ -84,7 +83,7 @@ const CarFilter = (

if (onSubmit) {
const filter: bookcarsTypes.CarFilter = { pickupLocation, dropOffLocation, from, to }
onSubmit(bookcarsHelper.clone(filter))
onSubmit(filter)
}
}

Expand Down

0 comments on commit 614c5eb

Please sign in to comment.