Certified GKH Gardening Expert
It may have gotten too much light! They will do best in bright but filtered light.
This could have something to do with improper watering, as well. They are known to be very finicky, so knowing the exact environmental requirements of the flower will help.
This article will help you to care for them: https://www.gardeningknowhow.com/houseplants/african-violet/african-violet-care.htm