Did you inform the company of your pregnancy?-using form 19 or in writing in any other manner?
Write a clear letter to your employer about the provisions of Sec 12 and 12(2)(a) of Maternity Benefits Act
12. Dismissal during absence of pregnancy.—
(1) When a woman absents herself from work in accordance with the provisions of this Act, it shall be unlawful for her employer to discharge or dismiss her during or on account of such absence or to give notice of discharge or dismissal on such a day that the notice will expire during such absence, or to vary to her disadvantage any of the conditions of her service.
(2) (a) The discharge or dismissal of a woman at any time during her pregnancy, if the woman but for such discharge or dismissal would have been entitled to maternity benefit or medical bonus referred to in section 8, shall not have the effect of depriving her of the maternity benefit or medical bonus: Provided that where the dismissal is for any prescribed gross misconduct, the employer may, by order in writing communicated to the woman, deprive her of the maternity benefit or medical bonus or both.
Act swiftly as you have law on your side.
Consult an advocate about your case after meeting your company officials and Labour officer of the area.