When fasting for the month of Ramadhan, a person mistakenly thought that an act invalidates the fast (i.e. it actually does not) and after committing this act intentionally, thinking that her fast is finished, she also ate and drank something before maghrib. Does she have to give kaffarah?

She has to do qaza but kaffara is subjected to the person