If her habit was fixed, it was right for her to offer salah in fix days by taking bath. If the bleeding started again on the seventh day, then it would be considered that the habit has changed. However, if it exceeded ten days, the routine days of menses shall be counted while the remaining one would be of istihaza and salah and fasting will be wajib during istihaza period. If it stops in less than ten days i.e. 8 or 9 days, then all the days will be counted as menses. This ruling is only when you mean blood by ‘discharge’, if it is not blood rather it is white fluid then in such situation the fixed days are of menses and the white fluid is neither menses nor istihaza but it is the discharge of impurity, during which salah and fasting shall be wajib.
Allah (Subhana Wa Ta’ala) knows Best
Darul Uloom Deoband