Skip to content
This repository was archived by the owner on Aug 4, 2026. It is now read-only.

Commit 3a83e58

Browse files
hyochanclaude
andcommitted
fix(ios): remove optional from RequestPurchaseResult default value
The Promise<RequestPurchaseResult> return type requires a non-optional value, but defaultResult was typed as RequestPurchaseResult? causing a type mismatch in the Promise.async closure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent db962ba commit 3a83e58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ios/HybridRnIap.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class HybridRnIap: HybridRnIapSpec {
150150

151151
func requestPurchase(request: NitroPurchaseRequest) throws -> Promise<RequestPurchaseResult> {
152152
return Promise.async {
153-
let defaultResult: RequestPurchaseResult? = .fourth([])
153+
let defaultResult: RequestPurchaseResult = .fourth([])
154154
RnIapLog.payload(
155155
"requestPurchase", [
156156
"hasIOS": request.ios != nil,

0 commit comments

Comments
 (0)