Once you've transferred the Bitcoin, the charity bears the risk or benefit of any value changes. Your donation value is locked in at the time of the transaction.