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 Apr 9, 2024
1 parent 56760dc commit 730308a
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 @@ -264,7 +264,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 730308a

Please sign in to comment.