I think this resolves #8 . Basically when I wrote the expandDistrictInfo() function I assumed that either House or Senate districts would always be shown, so never considered the possibility that neither is appropriate. I've just added a check for that case.
One lingering effect that I'm not thrilled with is that some of the popups end up with a horizontal line as their last content, so I'm going to make a separate PR to sort that out. That way you can compare results and see which you prefer.
I think this resolves #8 . Basically when I wrote the
expandDistrictInfo()
function I assumed that either House or Senate districts would always be shown, so never considered the possibility that neither is appropriate. I've just added a check for that case.One lingering effect that I'm not thrilled with is that some of the popups end up with a horizontal line as their last content, so I'm going to make a separate PR to sort that out. That way you can compare results and see which you prefer.