Skip to content

Commit

Permalink
use unsupported error code
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkVillacampa committed Feb 28, 2024
1 parent 0f3f92a commit c448205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNPurchases.m
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static void logUnavailablePresentCodeRedemptionSheet() {
} else {
NSString* description = @"Tried to handle Observer Mode transaction, but it's only available on iOS 15.0 or greater.";
NSError* error = [[NSError alloc] initWithDomain: RCPurchasesErrorCodeDomain
code: RCUnknownError
code: RCUnsupportedError
userInfo: @{NSLocalizedDescriptionKey : description}];
reject([NSString stringWithFormat:@"%ld", (long) error.code], [error localizedDescription], error);
}
Expand Down

0 comments on commit c448205

Please sign in to comment.