diff --git a/frontend/src/ts/test/funbox/funbox.ts b/frontend/src/ts/test/funbox/funbox.ts index ce7800953..971b48b59 100644 --- a/frontend/src/ts/test/funbox/funbox.ts +++ b/frontend/src/ts/test/funbox/funbox.ts @@ -259,13 +259,12 @@ FunboxList.setFunboxFunctions("layoutfluid", { const mod = wordsPerLayout - ((TestWords.words.currentIndex + 1) % wordsPerLayout); - console.log(wordsPerLayout); - console.log(mod); - - if (layouts[index + 1]) { - if (mod <= 3) { + if (layouts[index]) { + if (mod <= 3 && layouts[index + 1]) { LayoutfluidFunboxTimer.show(); LayoutfluidFunboxTimer.updateWords(mod, layouts[index + 1]); + } else { + LayoutfluidFunboxTimer.hide(); } if (mod === wordsPerLayout) { UpdateConfig.setLayout(layouts[index]);