I get a poor erection for the past 10 days. Is this due to Finasteride or excess masturbation?

Will Finasteride affect erection?