Skip to content

Commit 2e5a1cc

Browse files
Fix issue while reading values from SEGGroupPayload in group() call (#90)
* Fix issue while reading values from SEGGroupPayload in group() call * Fix [Amplitude setGroup:groupName:] call in SEGAmplitudeIntegration Co-authored-by: Cody Garvin <[email protected]>
1 parent f3505ac commit 2e5a1cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Pod/Classes/SEGAmplitudeIntegration.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ - (void)screen:(SEGScreenPayload *)payload
218218
- (void)group:(SEGGroupPayload *)payload
219219
{
220220
NSString *groupTypeTrait = self.settings[@"groupTypeTrait"];
221-
NSString *groupTypeValue = self.settings[@"groupTypeValue"];
221+
NSString *groupTypeValue = self.settings[@"groupValueTrait"];
222222
NSString *groupName = payload.traits[groupTypeTrait];
223223
NSString *groupValue = payload.traits[groupTypeValue];
224224

@@ -227,7 +227,7 @@ - (void)group:(SEGGroupPayload *)payload
227227
groupValue = payload.groupId;
228228
}
229229

230-
[self.amplitude setGroup:groupValue groupName:groupName];
230+
[self.amplitude setGroup:groupName groupName:groupValue];
231231
SEGLog(@"[Amplitude setGroup:%@ groupName:%@]", groupValue, groupName);
232232
}
233233

0 commit comments

Comments
 (0)