1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

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

View file

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