Skip to content

Commit 29ba514

Browse files
lposenCopilot
andauthored
Update ios/RNIterableAPI/ReactIterableAPI.swift
Added copilot suggestion Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 75dccb3 commit 29ba514

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

ios/RNIterableAPI/ReactIterableAPI.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,12 @@ import React
505505
ITBInfo()
506506
let launchOptions = createLaunchOptions()
507507
let iterableConfig = IterableConfig.from(
508-
dict: configDict as? [AnyHashable: Any]
508+
guard let configDictTyped = configDict as? [AnyHashable: Any] else {
509+
rejecter("E_INVALID_CONFIG", "configDict could not be cast to [AnyHashable: Any]", nil)
510+
return
511+
}
512+
let iterableConfig = IterableConfig.from(
513+
dict: configDictTyped
509514
)
510515

511516
if let urlHandlerPresent = configDict["urlHandlerPresent"] as? Bool, urlHandlerPresent == true {

0 commit comments

Comments
 (0)