It's up to senior engineers/tech lead/manager to detect that and then give feedback, helping that engineer grow.
It's also an important quality for an engineer to be able to take feedback and correct. Grit isn't the only important quality.