Divorce in Finland

Hello guys.I woudl like to ask about divorce in Finland and if hat affects the status of residence visa in case the person is a non EU citizen and she has a child from Finnish citizen.
After divorce will she still be able to stay in Finland as she has a child here or she needs to leave the country with her child?

please share your feedback or experience.

thanks

Don you have a visa or residence permit?

Hi Youssrimel. I have already residence ,this inquiry is for my friend ,she is from Nigeria and married to a finn but it seems that they will divorce so she would like to know if this affecs her residence status A as she also have a child with her finnish husband.