[iOS] Fixed trial eligibility check

https://jira.mail.ru/browse/MAPSME-14452
This commit is contained in:
Alexander Boriskov 2020-08-04 16:11:34 +03:00 committed by Arsentiy Milchakov
parent 408128c9fa
commit bd3af571d9
2 changed files with 4 additions and 0 deletions

View file

@ -36,10 +36,13 @@ static NSMutableDictionary<NSString *, NSMutableArray<CheckTrialEligibilityCallb
switch (trialEligibilityCode) {
case Purchase::TrialEligibilityCode::Eligible:
result = MWMCheckTrialEligibilityResultEligible;
break;
case Purchase::TrialEligibilityCode::NotEligible:
result = MWMCheckTrialEligibilityResultNotEligible;
break;
case Purchase::TrialEligibilityCode::ServerError:
result = MWMCheckTrialEligibilityResultServerError;
break;
}
NSMutableArray<CheckTrialEligibilityCallback> *callbackArray = callbacks[serverId];

View file

@ -163,6 +163,7 @@
} else {
[self notifyTrialEligibility:serverId result:MWMTrialEligibilityResultNotEligible];
}
break;
}
}];
}