oops
This commit is contained in:
parent
eb48f19198
commit
9ca2e84847
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -68,7 +68,7 @@ const loop = async () => {
|
||||||
);
|
);
|
||||||
const { state } = await response.json();
|
const { state } = await response.json();
|
||||||
const isLive = state.id === 1; // published
|
const isLive = state.id === 1; // published
|
||||||
console.info('Live: ', isLive, currentlyLive)
|
console.info('Live: ', isLive, globalState.currentlyLive)
|
||||||
const stateChange = isLive !== globalState.currentlyLive;
|
const stateChange = isLive !== globalState.currentlyLive;
|
||||||
console.info('State change', stateChange)
|
console.info('State change', stateChange)
|
||||||
globalState.currentlyLive = isLive;
|
globalState.currentlyLive = isLive;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue