Error 500

Trying to get property 'teamName' of non-object