summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-24 13:14:24 +0300
committerGravatar Vitaly Takmazov2019-03-24 13:14:24 +0300
commit0a52e369fea0ed40cd1427decc971748ccfa14ed (patch)
treed7fc545a987239d1c000557aab4941afb6e4d6cf
parent4ab3a6d5dd810991ecf33ddb4f99f42903936a9d (diff)
Fix empty badge value
-rw-r--r--Juick/AppDelegate.m2
1 files changed, 1 insertions, 1 deletions
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<UNNotification *> * _Nonnull notifications) {