From 730308aee29644b0ac3bcdf96ac369b90b8c24d9 Mon Sep 17 00:00:00 2001 From: Mark Villacampa Date: Wed, 28 Feb 2024 10:50:54 +0100 Subject: [PATCH] use unsupported error code --- ios/RNPurchases.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RNPurchases.m b/ios/RNPurchases.m index 69468df7..b7fc8bd3 100644 --- a/ios/RNPurchases.m +++ b/ios/RNPurchases.m @@ -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); }