It's a "chain watcher", and installed correctly, it's there to keep the chain from falling off. The one you show is rotated way too far to do any good. Reposition it so the plastic "finger" just clears the inside of the chain when in the small chainring and tighten the clamp to hold it in that position.