Fix bug where contract event anchor ids were incorrect
This commit is contained in:
		@@ -25,9 +25,10 @@ export class EventDefinition extends React.Component<EventDefinitionProps, Event
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    public render() {
 | 
					    public render() {
 | 
				
			||||||
        const event = this.props.event;
 | 
					        const event = this.props.event;
 | 
				
			||||||
 | 
					        const id = `${this.props.sectionName}-${event.name}`;
 | 
				
			||||||
        return (
 | 
					        return (
 | 
				
			||||||
            <div
 | 
					            <div
 | 
				
			||||||
                id={`${this.props.sectionName}-${event.name}`}
 | 
					                id={id}
 | 
				
			||||||
                className="pb2"
 | 
					                className="pb2"
 | 
				
			||||||
                style={{ overflow: 'hidden', width: '100%' }}
 | 
					                style={{ overflow: 'hidden', width: '100%' }}
 | 
				
			||||||
                onMouseOver={this._setAnchorVisibility.bind(this, true)}
 | 
					                onMouseOver={this._setAnchorVisibility.bind(this, true)}
 | 
				
			||||||
@@ -36,7 +37,7 @@ export class EventDefinition extends React.Component<EventDefinitionProps, Event
 | 
				
			|||||||
                <AnchorTitle
 | 
					                <AnchorTitle
 | 
				
			||||||
                    headerSize={HeaderSizes.H3}
 | 
					                    headerSize={HeaderSizes.H3}
 | 
				
			||||||
                    title={`Event ${event.name}`}
 | 
					                    title={`Event ${event.name}`}
 | 
				
			||||||
                    id={event.name}
 | 
					                    id={id}
 | 
				
			||||||
                    shouldShowAnchor={this.state.shouldShowAnchor}
 | 
					                    shouldShowAnchor={this.state.shouldShowAnchor}
 | 
				
			||||||
                />
 | 
					                />
 | 
				
			||||||
                <div style={{ fontSize: 16 }}>
 | 
					                <div style={{ fontSize: 16 }}>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user