Commit dd89e6fd by David Muzi

fix race condition in shop fetch for Apple Pay

parent c60138e3
......@@ -147,7 +147,7 @@ NSString * BUYURLKey = @"url";
__block NSError *checkoutError = nil;
// download the shop
if (self.shop != nil) {
if (self.shop == nil) {
dispatch_group_enter(group);
[self loadShopWithCallback:^(BOOL success, NSError *error) {
......
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