Skip to content

Correctly convert number to string#39

Open
klismannsm wants to merge 1 commit intohps:pax-transaction-id-stringfrom
springboardretail:klismannsm/fix-number-as-string
Open

Correctly convert number to string#39
klismannsm wants to merge 1 commit intohps:pax-transaction-id-stringfrom
springboardretail:klismannsm/fix-number-as-string

Conversation

@klismannsm
Copy link
Contributor

When fetching the data from a UPA response, number values were not being correctly converted to string.

@klismannsm klismannsm marked this pull request as draft September 21, 2022 12:10
@klismannsm klismannsm force-pushed the klismannsm/fix-number-as-string branch from 950e87c to 7328de0 Compare September 22, 2022 12:55
@klismannsm klismannsm marked this pull request as ready for review September 22, 2022 12:55
}

- (NSString *) getValueAsString:(NSString *)key{
return [NSString stringWithFormat:@"%@", [self getValue:key]];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to allow for [self getValue:key] to be nullable here.
cc @lundhjem

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Done.

When fetching the data from a UPA response, number values were not being
correctly converted to string.
@klismannsm klismannsm force-pushed the klismannsm/fix-number-as-string branch from 7328de0 to bd7e072 Compare October 6, 2022 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants