“Who decides if it is a contested state?”
State legislatures.
None of them did so prior to January 6th.