diff --git a/src/PageHeaderCursor.tsx b/src/PageHeaderCursor.tsx index d58eb7b..2cd7789 100644 --- a/src/PageHeaderCursor.tsx +++ b/src/PageHeaderCursor.tsx @@ -44,7 +44,7 @@ export default class PageHeaderCursor extends Component { private _findPercentCursorWidth = () => { const { width } = this.props.cursorStyle as any; - if (typeof width == 'string') { + if (typeof width === 'string') { return width.match(/(\d+(\.\d+)?)%/)?.[1]; } return null; @@ -149,7 +149,7 @@ export default class PageHeaderCursor extends Component { {this.props.renderCursor ? ( this.props.renderCursor() ) : ( - + )}