Skip to content

Commit

Permalink
Return empty string when value is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
vshab committed Apr 10, 2018
1 parent 4548214 commit b982fda
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 b982fda

Please sign in to comment.