Skip to content

Commit

Permalink
Merge pull request #112 from vshab/fix-crash-when-localized-is-nil
Browse files Browse the repository at this point in the history
Fix crash when localizedDescription is nil
  • Loading branch information
hyochan authored Apr 11, 2018
2 parents 4548214 + b982fda commit 2a805ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/RNIapIos.m
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ -(NSDictionary*)getProductObject:(SKProduct *)product {
@"price" : [product.price stringValue],
@"currency" : currencyCode,
@"type": itemType,
@"title" : product.localizedTitle,
@"description" : product.localizedDescription,
@"title" : product.localizedTitle ? product.localizedTitle : @"",
@"description" : product.localizedDescription ? product.localizedDescription : @"",
@"localizedPrice" : localizedPrice
};
}
Expand Down

0 comments on commit 2a805ca

Please sign in to comment.