From 459b7f8aef58b89d5c612303f2471dde2e56703f Mon Sep 17 00:00:00 2001 From: Ethan Neff Date: Mon, 9 Jan 2017 09:55:50 -0800 Subject: [PATCH] fix: userCompletedAction works with no metadata --- src/ios/BranchSDK.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/BranchSDK.m b/src/ios/BranchSDK.m index 025b63b8..45ff288e 100644 --- a/src/ios/BranchSDK.m +++ b/src/ios/BranchSDK.m @@ -234,7 +234,7 @@ - (void)userCompletedAction:(CDVInvokedUrlCommand*)command state = [command.arguments objectAtIndex:1]; } else { - name = (NSString *)command.arguments; + name = [command.arguments objectAtIndex:0]; } Branch *branch = [self getInstance];