[EventsView] Fix a condition to check a string