lint additional files

This commit is contained in:
Lachlan Kermode
2019-01-22 16:15:55 +00:00
parent 20d39f3bf9
commit 3de7b3a8c5
19 changed files with 135 additions and 180 deletions

View File

@@ -3,7 +3,6 @@ import { parseTimestamp, compareTimestamp, insetSourceFrom } from '../js/utiliti
// Input selectors
export const getEvents = state => state.domain.events
export const getLocations = state => state.domain.locations
export const getCategories = state => state.domain.categories
export const getNarratives = state => state.domain.narratives
export const getActiveNarrative = state => state.app.narrative
@@ -86,9 +85,10 @@ function isNoCategories (categories) {
* returns true/false if the event falls within timeRange
*/
function isTimeRangedIn (event, timeRange) {
const eventTime = parseTimestamp(event.timestamp)
return (
timeRange[0] < parseTimestamp(event.timestamp) &&
parseTimestamp(event.timestamp) < timeRange[1]
timeRange[0] < eventTime &&
eventTime < timeRange[1]
)
}