Skip to content

Commit

Permalink
fix: prevent converting stringified zipcode to integer (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmustafa-tse authored Jan 12, 2022
1 parent 50322cc commit a3ea976
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/mParticle-Appboy/MPKitAppboy.m
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ - (MPKitExecStatus *)setUserAttribute:(NSString *)key value:(NSString *)value {
#endif
} else if ([key isEqualToString:mParticleUserAttributeMobileNumber] || [key isEqualToString:@"$MPUserMobile"]) {
appboyInstance.user.phone = value;
} else if ([key isEqualToString:mParticleUserAttributeZip]){
[appboyInstance.user setCustomAttributeWithKey:@"Zip" andStringValue:value];
} else {
key = [self stripCharacter:@"$" fromString:key];

Expand Down

0 comments on commit a3ea976

Please sign in to comment.