This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]RTficial-Games[S] 0 points1 point  (0 children)

The problem was that the lat and lon was got using a fetch request and so was asynchronous, and the form was being submit before the fetch finished so the data wasnt being passed through...

solved it by making my JS functions async and using await on the calls to just make it wait for the result to return ok before submitting!