Skip to content

Commit c3e1389

Browse files
lposenCopilot
andauthored
refactor: update ios/RNIterableAPI/ReactIterableAPI.swift with copilot suggestion
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6dbead4 commit c3e1389

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
@@ -164,7 +164,12 @@ import React
164164
return
165165
}
166166
IterableAPI.attributionInfo = SerializationUtil.dictionaryToDecodable(
167-
dict: dict as! [AnyHashable: Any])
167+
guard let swiftDict = dict as? [AnyHashable: Any] else {
168+
IterableAPI.attributionInfo = nil
169+
return
170+
}
171+
IterableAPI.attributionInfo = SerializationUtil.dictionaryToDecodable(
172+
dict: swiftDict)
168173
}
169174

170175
@objc(trackPushOpenWithCampaignId:templateId:messageId:appAlreadyRunning:dataFields:)

0 commit comments

Comments
 (0)