shuffle-topic-fix-3

This commit is contained in:
Untone 2024-05-06 13:53:35 +03:00
parent 3f8d495076
commit 56f46c18dd

View File

@ -69,7 +69,10 @@ export const Header = (props: Props) => {
let windowScrollTop = 0 let windowScrollTop = 0
createEffect(() => { createEffect(() => {
if (topics()) setRandomTopics(getRandomTopicsFromArray(topics())) if (topics()?.length) {
console.debug(topics())
setRandomTopics(getRandomTopicsFromArray(topics()))
}
}) })
createEffect(() => { createEffect(() => {