From fabf9fed1c3bc9836f8916ed81d3bdddafb0532e Mon Sep 17 00:00:00 2001 From: lucka-me Date: Sun, 19 Sep 2021 09:56:05 +0800 Subject: [PATCH] Fix notification title --- Widget/Shared/Extensions/Service+BackgroundRefresh.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Widget/Shared/Extensions/Service+BackgroundRefresh.swift b/Widget/Shared/Extensions/Service+BackgroundRefresh.swift index 46084c6..fe48c48 100644 --- a/Widget/Shared/Extensions/Service+BackgroundRefresh.swift +++ b/Widget/Shared/Extensions/Service+BackgroundRefresh.swift @@ -18,7 +18,7 @@ extension Service { let count = try await refresh(throwWhenMatchRequired: true) if count > 0 { UNUserNotificationCenter.current().push( - .init(localized: "notification.refresh.requiresMatch"), + .init(localized: "notification.refresh.refreshFinished"), .init(format: .init(localized: "notification.refresh.refreshFinished.desc"), count) ) } @@ -27,7 +27,6 @@ extension Service { .init(localized: "notification.refresh.requiresMatch"), .init(localized: "notification.refresh.requiresMatch.desc") ) - } catch { // TODO: Alert }