State tax filing

Hi I just wanted to reclarify. The Utah state income website states that a non resident needs to file return if income is from Utah sources. My income was not from Utah sources, instead it was from Virginia source (as shown on my W-2). I just went to Utah to visit friend during summer. Do I still need to pay Utah State Tax?

https://incometax.utah.gov/instructions/who-must-file#nonresidents-working

You must file a TC-40 return if you:

  1. are a Utah resident or part-year resident who must file a federal return,
  2. are a nonresident or part-year resident with income from Utah sources who must file a federal return, or
  3. want a refund of any income tax overpaid.