From 0a52e369fea0ed40cd1427decc971748ccfa14ed Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 24 Mar 2019 13:14:24 +0300 Subject: Fix empty badge value --- Juick/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Juick/AppDelegate.m') diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index d33a0fb..65220ff 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -118,7 +118,7 @@ NSString * const UserUpdatedNotificationName = @"UserUpdated"; [discussions tabBarItem].badgeColor = [UIColor colorNamed:@"Funny"]; [discussions tabBarItem].badgeValue = [NSString stringWithFormat:@"%ld", user.unreadCount]; } else { - [discussions tabBarItem].badgeValue = @""; + [discussions tabBarItem].badgeValue = nil; } [[NSNotificationCenter defaultCenter] postNotificationName:UserUpdatedNotificationName object:user]; [[UNUserNotificationCenter currentNotificationCenter] getDeliveredNotificationsWithCompletionHandler:^(NSArray * _Nonnull notifications) { -- cgit v1.2.3