Patty Jenkins wasn’t a lock to direct Wonder Woman 1984 either, as she was only signed on for the first film but she secured a lucrative new deal after the first film’s success and returned.
One imagines if that deal was only for the sequel, they will once again be at the bargaining table if Wonder Woman 1984 is also a hit.
Even if she doesn’t direct, she would probably stay on as some kind of producer who would have a say in the direction of the third film.