Fungus gnats are there because you don't allow the surface soil to dry between waterings. The flying gnats aren't the problem but their larvae can be if allowed to multiply as they eat roots and any other biological material in the top couple inches of the soil.