Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Segment-Intercom/Classes/SEGIntercomIntegration.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ - (void)track:(SEGTrackPayload *)payload

NSMutableDictionary *output = [NSMutableDictionary dictionaryWithCapacity:payload.properties.count];
NSMutableDictionary *price = [NSMutableDictionary dictionaryWithCapacity:0];
__block BOOL isAmountSet = false;
__block BOOL isAmountSet = NO;

[payload.properties enumerateKeysAndObjectsUsingBlock:^(id key, id data, BOOL *stop) {
[output setObject:data forKey:key];
Expand All @@ -88,7 +88,7 @@ - (void)track:(SEGTrackPayload *)payload
[price setObject:finalAmount forKey:@"amount"];

[output removeObjectForKey:key];
isAmountSet = @YES;
isAmountSet = YES;
}

if ([key isEqual:@"currency"]) {
Expand Down