NJ resident but sold a rental property in PA, how is property sale gain taxed in NJ and PA?

Hi, I am a full year resident of NJ and owns a primary home in NJ.  I have a rental condo in PA and sold it.  Do I own income or capital gain tax in NJ or PA or both?  I hope that I am not double taxed by PA and NJ for this rental property sale. Thanks.