Skip to content

Commit

Permalink
call isGooglePlayServiceAvailable only if isPlayVersion is true (#1133)
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism authored Jul 25, 2024
1 parent c4aa50d commit fec2eec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/plans/plan_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ class _PlanCardState extends State<PlanCard> {
final isPlayVersion = sessionModel.isPlayVersion.value ?? false;
final inRussia = sessionModel.country.value == 'RU';
// check if google play payment is available
final isGooglePlayAvailable = await sessionModel.isGooglePlayServiceAvailable();
if (isPlayVersion && !inRussia && isGooglePlayAvailable) {
if (isPlayVersion && !inRussia && await sessionModel.isGooglePlayServiceAvailable()) {
await context.pushRoute(
PlayCheckout(
plan: widget.plan,
Expand Down

0 comments on commit fec2eec

Please sign in to comment.