Skip to content
Snippets Groups Projects
Commit 71bc1d48 authored by Justin van der Krieken's avatar Justin van der Krieken
Browse files

Normalize if-statement

parent dd2bf312
No related branches found
No related tags found
No related merge requests found
......@@ -129,12 +129,12 @@ class PDFEditor extends React.Component {
}
renderSelectionBox = () => {
if (!this.state.mouseDown || this.state.selectionEndPoint === null || this.state.selectionStartPoint === null) {
return null
} else {
if (this.state.mouseDown && this.state.selectionEndPoint && this.state.selectionStartPoint) {
return(
<div className='selection-border' style={this.state.selectionBox}></div>
)
} else {
return null
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment