Refund throws a fatal error if the main contribution amount is 0.
To replicate -
- Create an event with fee amount options = $0, $50, $100.
- Register contact A for an event with price $50.
- Change selection to $0. Main contribution amount updates to $0.
- Record refund of $50 -> Submit.
- Payment is refunded but the ajax form is stuck with an Error.