Skip to content

Commit

Permalink
feat: Use replaceSkuWithProductName (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonStalnaker authored Dec 11, 2024
1 parent 3e25f42 commit 1033ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/mParticle-Appboy/MPKitAppboy.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
static NSString *const emailIdTypeKey = @"emailIdentificationType";
static NSString *const enableTypeDetectionKey = @"enableTypeDetection";
static NSString *const bundleCommerceEventData = @"bundleCommerceEventData";
static NSString *const replaceSkuAsProductName = @"forwardSkuAsProductName";
static NSString *const replaceSkuWithProductName = @"replaceSkuWithProductName";

// The possible values for userIdentificationType
static NSString *const userIdValueOther = @"Other";
Expand Down Expand Up @@ -552,7 +552,7 @@ - (MPKitExecStatus *)routeCommerceEvent:(MPCommerceEvent *)commerceEvent {
}

NSString *sanitizedProductName = product.sku;
if ([@"True" isEqualToString:_configuration[replaceSkuAsProductName]]) {
if ([@"True" isEqualToString:_configuration[replaceSkuWithProductName]]) {
sanitizedProductName = product.name;
}

Expand Down

0 comments on commit 1033ef6

Please sign in to comment.