Instead of checking the contest type, just check the challengeCommunity property on the record