Commit e03e9acd by Brent Gulanowski

Only include attributes if there are any.

parent 0c43f899
......@@ -122,8 +122,6 @@
#pragma mark - BUYObject
- (NSDictionary *)JSONEncodedProperties
{
//We only need the dirty properties
......@@ -133,7 +131,9 @@
- (NSDictionary *)jsonDictionaryForCheckout
{
NSMutableDictionary *json = [self.JSONDictionary mutableCopy];
json[@"attributes"] = self.attributesDictionary;
if (self.attributes.count > 0) {
json[@"attributes"] = self.attributesDictionary;
}
return @{ @"checkout" : json };
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment