Now over this module, we did add a lot of forms and validation related functionality and I noticed a
bug,
I'll be honest I noticed it after I recorded this module.
It's not a severe one,
we're going to fix it later in this course. In our contact data container where we have the state managing
our form controls, delivery method, that's our select element right,
and there I set a value of empty string initially.
Now we have the options, fastest or cheapest, an empty string doesn't make much sense,
now on the UI we will see fastest and cheapest
but if we never switch the option, behind the scenes value will always stay an empty string,
it will always be updated once we trigger onChange,
so once we did change the value once. This will become an issue later when we submit our form to the
server, then we will actually submit an empty value in case we never switch the value. Again,
I will fix it later in the course
just in case you already noted it,
good job.
Again will be fixed,
the fix is as easy as simply entering fastest or cheapest as the default here and you can choose which ever
one you want.
So that is how to fix this,
again I'll leave it as we have it here, will be fixed later.