The gnats aren't ever the REAL issue as they do nothing to the plants. They do however lay there larvae into the medium who then feed on the root structures and the nutrients in the soil. This can inhibit growth in your plant and cause deficiencies. Place half of a raw potato upside down in the medium and check it within 24 hours. If you see larvae you will need to treat your medium to rid it of the larvae