What does 2 Kings 12:2 mean?
Joash did what was right in God's eyes for as long as Jehoiada the priest was alive and guiding him. 2 Kings 12:2 - Modern Text Bible
(Joash followed God's ways, but his faithfulness was closely tied to the influence of the priest Jehoiada.)