diff --git a/src/libs/UnreadIndicatorUpdater/updateUnread/index.ios.js b/src/libs/UnreadIndicatorUpdater/updateUnread/index.ios.js index 43d86f285873..16f102622c13 100644 --- a/src/libs/UnreadIndicatorUpdater/updateUnread/index.ios.js +++ b/src/libs/UnreadIndicatorUpdater/updateUnread/index.ios.js @@ -9,8 +9,9 @@ import {UrbanAirship} from 'urbanairship-react-native'; function updateUnread(totalCount) { if (totalCount === -1) { UrbanAirship.setBadgeNumber(1); + } else { + UrbanAirship.setBadgeNumber(totalCount); } - UrbanAirship.setBadgeNumber(totalCount); } export default updateUnread;