It's like saying that you don't care if you lose money, no matter the amount. It's just going to be a thing for you, and you lose it, and it's going to be okay. I think it shouldn't be affected because if you want to have that dopamine rush. However, if you aim to earn money, I don't think having infinite wealth would let you continue to gamble, because you would have already achieved it.
It depends on the persons goal / purpose with gambling.