Please note that some state tax offices require you to report your Federal Adjusted Gross income first and include your total US income, even if a portion of that wasn’t earned in the state you are filing for, however you may not be taxed on this.
Some state tax offices will tax you only on the portion earned in the said state, however, in some cases depending on your state residency, the state may tax you on your total US income.
Such double taxations often happen if you worked in two states during the tax year, but don't worry as this is a very common issue that many nonresidents face.