This is a fantastic question and one that everyone struggles with. Balancing passion and salary is by no means easy but it is something that we all sadly have to do. I wish we lived in a world where our passions could sustain our financial independence but sadly that is not always the case.
To make this simple, you should definitely consider salary as one among many factors when choosing a major or career. We all have different standards of living so factor in salary to the degree that makes sense with your individual lifestyle; by this I mean that if you enjoy doing things that cost a lot of money then you should be factoring salary more heavily into your decision making process compared to someone who doesn't like to live an expensive lifestyle. There is no bad choice, it really is a personal decision and everyone is different (and that is ok)!!
Reflect on who you are, what you expect out of life, and what makes you happy. Don't sacrifice your happiness for financial safety; some of the most miserable people that I have met in my life are incredibly wealthy. On the other hand, pursuing your passion at the expense of financial stability can be extremely difficult and may lead to a whole different set of issues.
Finding something that is both personally gratifying and lucrative enough for your individual lifestyle is a good starting point if you are unsure, from there you can stress one factor over the other (happiness vs financial stability) if you want.
I hope this helps and I wish you the best of luck. Please feel free to ask a follow up question!!