diff --git a/index.js b/index.js index 30300af..ee9c1ff 100644 --- a/index.js +++ b/index.js @@ -68,7 +68,7 @@ const loop = async () => { ); const { state } = await response.json(); const isLive = state.id === 1; // published - console.info('Live: ', isLive, currentlyLive) + console.info('Live: ', isLive, globalState.currentlyLive) const stateChange = isLive !== globalState.currentlyLive; console.info('State change', stateChange) globalState.currentlyLive = isLive;