There’s only a potential conflict of interest for the client, aka the person paying for a consultation, and if the client was okay with it, then there’s not a problem, ethically, in the legal world. It’s not like the consultant was personally involved in the case except on one side, their involvement in times up is via donations.