Joash did what was right in the eyes of the Lord. He lived that way as long as the priest Jehoiada was alive.