diff --git a/Segment-Intercom/Classes/SEGIntercomIntegration.m b/Segment-Intercom/Classes/SEGIntercomIntegration.m index 09d157e..4b95930 100644 --- a/Segment-Intercom/Classes/SEGIntercomIntegration.m +++ b/Segment-Intercom/Classes/SEGIntercomIntegration.m @@ -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]; @@ -88,7 +88,7 @@ - (void)track:(SEGTrackPayload *)payload [price setObject:finalAmount forKey:@"amount"]; [output removeObjectForKey:key]; - isAmountSet = @YES; + isAmountSet = YES; } if ([key isEqual:@"currency"]) {