Regression: Fix badge count logic on iOS (#4154)

* fix badge count logic

* set count default value
This commit is contained in:
Gleidson Daniel Silva 2022-05-03 08:53:18 -03:00 committed by GitHub
parent bd55fe44ba
commit 06a0c4f730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ class PushNotification {
return this.deviceToken;
}
setBadgeCount = (count?: number) => {
if (isIOS && count) {
setBadgeCount = (count = 0) => {
if (isIOS) {
Notifications.ios.setBadgeCount(count);
}
};