Manos Chorianopoulos

consumerIntegrationWithSuccessBlock fix

......@@ -1059,8 +1059,6 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
{
NSMutableDictionary* data = [[NSMutableDictionary alloc] init];
[data setValue:@"consumer_extra_data" forKey:@"method"];
if (nonTelco && ![nonTelco isEqual:@NO]) {
[data setValue:nonTelco forKey:@"nonTelco"];
} else {
......@@ -1088,6 +1086,8 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
NSMutableDictionary* consumerData = [[NSMutableDictionary alloc] init];
[consumerData setValue:@"integration" forKey:@"action"];
[consumerData setValue:@"consumer_extra_data" forKey:@"method"];
if(data && ![data isEqual:@{}]) {
[consumerData setValue:data forKey:@"data"];
}
......