Is a math degree really useless financially? I graduated in December 2018 with a double degree in math and electrical engineering and have applied to various graduate schools in pure math and electrical engineering and have been offered admission to phd programs in pure math and electrical engineering.

During my undergraduate studies, I have heard many academic mathematicians say that a math degree opens many opportunities for you and mathematicians can get any job, ...

On the other hand, I have also heard people saying that a math degree is useless financially and you can not get a decent job with a math degree; you either need to become a school teacher or work at a bank, ...

Now that I am about to start my phd program, although I enjoy math a lot, I do not want to get a phd in math and after four years find that it did not worth it financially and I have to do a not well-paid job. I can not also hope that I will end up in academia as I have heard academic jobs are very hard to get.

So that leaves me to think that if I want to get a well-paid job, I should do a phd in electrical engineering and not math.

I am so confused and I do not know which paths am I supposed to take? do a phd in math or electrical engineering?
Just a personal anecdote, not really an answer, too long for a comment.

I have a master degree in mathematics and now I'm doing physics simulations for visual effects in Hollywood blockbusters. I believe that a math degree gives you a massive upper hand in any field with reasonable amount mathematics in it. However, you have to be interested in that field and study it in your spare time. I studied computer graphics in my spare time and my math background allowed me to comprehend things in computer graphics orders of magnitudes faster and deeper compared to fellow computer science students.

Take it with a grain of salt, master degree is completely different kind of a beast compared to a PhD degree.