Skip to content

Commit 53427e4

Browse files
authored
[ios] Fix clicked_branch_link false positive
Before this change a pointer was being interpreted as a BOOL value, so: - `nil` would become `false` - `NSNumber` representing 1 would become `true` - `NSNumber` representing 0 would also become `true` (a pointer would be non-null) This change should fix the issue and interpret the value properly.
1 parent eb270e3 commit 53427e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNBranch.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ + (void)initializeBranchSDK
183183
if (error) result[RNBranchLinkOpenedNotificationErrorKey] = error;
184184
if (params) {
185185
result[RNBranchLinkOpenedNotificationParamsKey] = params;
186-
BOOL clickedBranchLink = params[@"+clicked_branch_link"];
186+
BOOL clickedBranchLink = [params[@"+clicked_branch_link"] boolValue];
187187

188188
if (clickedBranchLink) {
189189
BranchUniversalObject *branchUniversalObject = [BranchUniversalObject objectWithDictionary:params];

0 commit comments

Comments
 (0)