Ignorance is not knowing things (e.g. facts).
Stupidity is not being about to think about things (e.g. lacking reason, being unable to make a good decision even when given all the useful information).
Making a bad decision out of ignorance isn't necessarily stupid. Making a bad decision despite knowing the consequences is.