Guard against undefined VERSION

pull/2910/head
Alex P 2018-03-08 10:59:02 -08:00 committed by Andrew Watkins
parent 143c8d4452
commit 7afc8f7828
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ export const loadLocalStorage = errorsQueue => {
// eslint-disable-next-line no-undef
if (state.VERSION && state.VERSION !== VERSION) {
const errorText = `Welcome to Chronograf ${VERSION}. Local settings cleared.`
const version = VERSION ? ` (${VERSION})` : ''
const errorText = `Welcome to the latest Chronograf${version}. Local settings cleared.`
console.log(errorText) // eslint-disable-line no-console
errorsQueue.push(errorText)