#Formstate value is not getting set correctly

17 messages · Page 1 of 1 (latest)

wild ivy
#

I don't do react, but wouldn't you need to import useState?
also the error is not related, it is just complaining about the format of your time value. I think you need HH:mm required by any script you use

keen rapids
#

when I put the console.log under the decleraction of it, it logs this:

wild ivy
# keen rapids

I think that's the correct syntax.
And re the log: so it does get updated, just doesn't show?

keen rapids
#

It must get updated but after the data get posted to the databse

wild ivy
#

sorry, I fear I can't help, hopefully someone else will... Good luck!!

crystal crow
#

accountEquity is a string , you're passing a number ?

keen rapids
#

this is so confusing

crystal crow
#

the console log just after setFormState wont show you the updated formState

keen rapids
#

because it hasent updated yet?

#

?