Duplicate event handler

I am getting this error "This is a duplicate event handler for this component".What should I do?

You have two event handlers that are the same. For instance when button.click. So search your blocks for duplicates. You also have an error I guess on the lower left side

The arrows on the red error counter let you hop from error to error.