This reminds me of a study by Claudia M. Mueller and Carol S. Dweck of Columbia University - ‘Praise for Intelligence Can Undermine Children's Motivation and Performance’ .
They said praise for the effort and not results.
They found that children who were praised for their intelligence, as compared to their effort, became overly focused on results. Following a failure, these same children persisted less, showed less enjoyment, attributed their failure to a lack of ability (which they believed they could not change), and performed poorly in future achievement efforts.
Children praised for effort chose problems that promised increased learning, they had continued interest in mastery by preferring to receive strategy-related information.
 PDF: https://psychology.stanford.edu/sites/all/files/Intelligence...