Uber takes a pre-auth before the trip and then charges the final amount once the trip is completed. Only one of the transactions will get settled and the other pending authorization will be removed.
Below is a link from Uber detailing how they temporary authorization holds.