Isn't it risky to go on maternity leave and have a temporary replacement fill in your spot?

What happens if the employer likes the replacement's work better and permanently hires him/her and gets rid of you? Now you would be out of a job.
10 answers 10