Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
Fixed issue when account = null
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeepeng committed Aug 7, 2017
1 parent 563b6e3 commit 069e9d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class XGPush {

static register(account) {
if (Platform.OS === 'ios') {
XGPushManager.setAccount(account);
!!account && XGPushManager.setAccount(account);
return XGPushManager.requestPermissions({
alert: true,
badge: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-xinge-push",
"version": "0.2.1",
"version": "0.2.2",
"description": "Xinge push for react-native",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 069e9d7

Please sign in to comment.