type form event

This commit is contained in:
Thomas Ruoff
2020-10-07 22:21:26 +02:00
committed by Thomas Ruoff
parent 64029ec06a
commit 59ab8b64fa

View File

@@ -116,7 +116,7 @@ export default function BillPage({
// in case the props change, update the internal state
useEffect(() => setBooking(bookingProp), [bookingProp])
const onSubmit = async (event) => {
const onSubmit = async (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault()
const bill = await saveBill(booking, {
milageStart,