Replace regex with boolean

pull/2041/head
Andrew Watkins 2017-09-27 13:05:04 -07:00
parent d90d465e59
commit 16d48b2dac
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class CustomTimeRange extends Component {
constructor(props) {
super(props)
this.state = {
isNow: this.props.timeRange.upper.match(/^now/),
isNow: this.props.timeRange.upper === 'now()',
}
}