Motivation is a good idea but you shouldnt lose motivation if you did not lose a battle because then your getting kicked out of a gym even when you didnt lose.
April 26 2016 game Steve about Pokémon GO, v1.39.1