use dispatch instead of commmit, fix bad copypasta

This commit is contained in:
Henry Jameson 2023-11-16 22:08:51 +02:00
commit c216340001
2 changed files with 9 additions and 5 deletions

View file

@ -82,7 +82,11 @@ export const unseenNotificationsFromStore = store =>
export const prepareNotificationObject = (notification, i18n) => {
if (cachedBadgeUrl === null) {
const favicon = FaviconService.getOriginalFavicons()[0]
cachedBadgeUrl = favicon.favimg.href
if (!favicon) {
cachedBadgeUrl = 'about:blank'
} else {
cachedBadgeUrl = favicon.favimg.href
}
}
const notifObj = {