@evan In most cases, isn't the immediate fix a rollback? After that, the junior can take their time pairing with a senior to figure out why it went wrong and implement it correctly.
For minor errors I will just write a fix, but for me it feels straight up rude to fix someone else's grave error without giving them a chance to do it themselves.