Depo shot & EBF?

Annica
So I had my 6w pp checkup today and I got back on the depo shot because it's what I had before I got pregnant (I didn't go back in time for my shot that's why I got pregnant) well I'm EBF will it interfere with my milk supply after reading a lot of posts on here I'm seeing everyone recommend the mini pill? Did I make a mistake getting the shot I'm kind of regretting it now? Should I switch? After the 3 months are over? I want to be able to have another baby in a year and a half or so. A lot of people have been saying it makes you infertile is that true?