From fec2eec5fb3f75288cbd5ea197952ed83f04f314 Mon Sep 17 00:00:00 2001 From: atavism Date: Thu, 25 Jul 2024 12:22:20 -0700 Subject: [PATCH] call isGooglePlayServiceAvailable only if isPlayVersion is true (#1133) --- lib/plans/plan_details.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/plans/plan_details.dart b/lib/plans/plan_details.dart index 14fb9024d..395527b9e 100644 --- a/lib/plans/plan_details.dart +++ b/lib/plans/plan_details.dart @@ -163,8 +163,7 @@ class _PlanCardState extends State { 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,