Fixed incorrect status reporting

This commit is contained in:
Sam 2018-07-13 15:27:23 +10:00
parent f73d184042
commit 57d655a61d
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ const actions = {
type = metadata.type
}
let status = 'good'
if (!state.synclounge.lastHostTimeline || !state.synclounge.lastHostTimeline.time) {
if (!state.synclounge.lastHostTimeline || isNaN(state.synclounge.lastHostTimeline.time)) {
status = 'error'
} else {
let difference = Math.abs(state.chosenClient.lastTimelineObject.time - state.synclounge.lastHostTimeline.time)