I lived in NV and CT. I worked remotely and occasionally on-site for a CT company.

I lived in NV and CT.  I own property in NV and have self-employment in come in NV.   I am a W-2 employee for the CT company I work for.  I worked remotely and occasionally on-site for the CT company.  The CT company is taking income tax.  Are they able to fairly charge me this income tax even though I am only occasionally going into the office?