The plant is flowering but the leaves are yellowing?
What Causes the Leaves on a Desert Rose to Yellow?
Certified GKH Gardening Expert
There are several causes for yellowing foliage, but the number one reason is stress-underwatering, nutrient deficiency, shock, pests, etc. Pinpointing the cause for this stress is important in treating the plant. This article should provide some ideas: https://www.gardeningknowhow.com/plant-problems/environmental/plant-leaves-turn-yellow.htm