Even there, I think it’s a grey area. I was already in middle school when Roald Dahl died and I’m Jewish, but my dad (who was remarkably sensitive to antisemitism in almost every other case) still read me his children’s books. He did profit off of them and he shouldn’t, but it’s hard to deny that books like James and the Giant Peach or The BFG aren’t amazingly good children’s books which don’t themselves have any bigotry issues (Willy Wonka not so much re the original Oompa Loompas) and it would be hard to say that children shouldn’t have been reading books that good just because the guy who wrote them was horrible.
I just don’t know how to feel about such things. At what point is a work so good that it transcends how horrible the person who made it is? I don’t have an answer there.
As I said, I’ve never been a fan of Harry Potter, so this particular issue does not apply to me in this case and I honestly do not know what I would do about it if I did.