fix: fixing null user preferences for download notifications

This commit is contained in:
Hydra 2024-04-18 23:03:50 +01:00
parent 671c160e49
commit 407c736522
2 changed files with 2 additions and 4 deletions

View file

@ -82,7 +82,7 @@ const checkForNewRepacks = async () => {
repackRepository.count().then((count) => {
const total = count - stateManager.getValue("repacks").length;
if (total > 0 && userPreferences.repackUpdatesNotificationsEnabled) {
if (total > 0 && userPreferences?.repackUpdatesNotificationsEnabled) {
new Notification({
title: t("repack_list_updated", {
ns: "notifications",