Being charged twice for one transaction when paying with contactless is highly unlikely. This is because once you’ve placed your card or smartphone on the card reader, the transaction is complete.
Payment terminals have been designed to prevent you paying for the same thing twice, so the chances of you getting charged double are highly unlikely.
Some terminals will ask you to only present one card if it can detect two, while others might cancel the transaction entirely to avoid overcharging.