Skip to content

Commit c448205

Browse files
use unsupported error code
1 parent 0f3f92a commit c448205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNPurchases.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static void logUnavailablePresentCodeRedemptionSheet() {
242242
} else {
243243
NSString* description = @"Tried to handle Observer Mode transaction, but it's only available on iOS 15.0 or greater.";
244244
NSError* error = [[NSError alloc] initWithDomain: RCPurchasesErrorCodeDomain
245-
code: RCUnknownError
245+
code: RCUnsupportedError
246246
userInfo: @{NSLocalizedDescriptionKey : description}];
247247
reject([NSString stringWithFormat:@"%ld", (long) error.code], [error localizedDescription], error);
248248
}

0 commit comments

Comments
 (0)