Be even more explicit with notification icon store update to avoid any magic

This commit is contained in:
Andrew Kingston 2021-02-04 11:29:35 +00:00
parent 6b8ab62930
commit 0d5201ceae
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,10 @@
onMount(() => { onMount(() => {
const interval = setInterval(() => { const interval = setInterval(() => {
$store.highlightFeedbackIcon = analytics.highlightFeedbackIcon() store.update(state => {
state.highlightFeedbackIcon = analytics.highlightFeedbackIcon()
return state
})
}, FIVE_MINUTES) }, FIVE_MINUTES)
return () => clearInterval(interval) return () => clearInterval(interval)
}) })