1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13: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 af5a95557a
commit 5a89c640bd

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)
})