Can't know more until seeing the full body of your code, but my guessing is when the two seconds up React call your first setState setting showForm to true and immediately render the component without waiting for the second setState to make changes.
Try use only one setState, there's no point of splitting them up anyways.