A bad manager will make or break your experience at a company. Doesn’t matter how great the project is, or the people you’re working with. Do your due diligence, ask around, and if you get even a hint of shenanigans run for the hills.
Similarly if you find yourself with one plan an exit asap.
The priority order when you find a team is: 1- manager, 2- team and 3- how closely the project as is aligns with your interests and expertise. 2- changes over time and 3- is often within your control once you join, but 1- is an awful lot of work to extricate yourself from after.