Trigger finger right hand

Asked for Male, 49 Years

Finger snaps or gets stuck mostly in morning and night. It had been diagnosed by an steroid injection just below the middle finger. But still the problem persists and now even its paining. The injection spot has turned bluish. It has been almost 7 to 8 months with this. Pls tell what to do???
Any home remedy possible?