Do things for the right reasons
We should do things for the right reasons. The best reason to do something is because it is useful and makes us happy and peaceful. If we do something just for praise and fame, there is a chance we may get disappointed. But if we do it because we like it, because it is self-satisfying and fulfilling, then whatever the results are, our creative efforts are never wasted. If they are also appreciated by others, that is a bonus.