Can I offer my prayers in front of the heater on. someone said it is fire parastish

Offering prayer in front of fire (it should be a natural fire itself not a heating equipment like heater) is disliked (makruh) not haram so there is no issue in offering salah in front of a heater switched on and it will not be considered as a fire worship.