Answer
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
Having gender reassignment surgery has nothing with your conversion to Islam and it will be accepted, insha’Allah.
Answering your question, Dr. Jasser Auda, Professor and Al-Shatibi Chair of Maqasid Studies at the International Peace College South Africa, states:
Converting to Islam has nothing to do with whether you had gender reassignment surgery in the past or the reason behind it, whether it be physical, biological, or psychological.
Previously changing your gender from male to female through surgical procedures does not affect believing in Allah the One and Only God and also believing in Prophet Muhammad (peace be upon him) as His messenger.
If you are currently acting in a way not Muslim-like, you need to train yourself to stop that action immediately and behave according to the Islamic moral code.
Almighty Allah knows best.