Fix undefined error for userState in company settings modal