Skip to content

Commit

Permalink
Update if/else error
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwenmemon committed Jun 28, 2021
1 parent 1d72d95 commit fd74b95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/UnreadIndicatorUpdater/updateUnread/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit fd74b95

Please sign in to comment.