Im pretty sure its up to the party. Who they choose for their candidate isnt governed by any law (except for the constitutional restrictions).
Thanks!!
Correct me if I’m wrong but I think Harris didn’t even carry her home state of CA in the primary.