Updated event type check for trigger.