From cd3706ec3ef218d31813a7e007c26959e21268b3 Mon Sep 17 00:00:00 2001 From: Lijo George Date: Tue, 14 Nov 2023 23:27:41 +0530 Subject: [PATCH] #183 optIn value checking optIn value checking for calling SDK function by changing 'false' to 'true' --- .../dataSharing/controllers/dataAgreement_controller.dart | 2 +- lib/app/modules/register/controllers/register_controller.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/app/modules/dataSharing/controllers/dataAgreement_controller.dart b/lib/app/modules/dataSharing/controllers/dataAgreement_controller.dart index 680a769..956c5f8 100644 --- a/lib/app/modules/dataSharing/controllers/dataAgreement_controller.dart +++ b/lib/app/modules/dataSharing/controllers/dataAgreement_controller.dart @@ -77,7 +77,7 @@ class DataAgreementContoller extends BaseController { "baseUrl": "https://staging-consent-bb-api.igrant.io/v2/" }); Map responseMap = json.decode(response); - if (responseMap['optIn'] == false) { + if (responseMap['optIn'] == true) { _registerController.getDataAgreement(sharingtoken:accessToken,sharingDataAgreementID:"65534a579a6116c5c2b98cf1",isFlag:true); Get.back(); int index = _registerController.selectedPage.value + 1; diff --git a/lib/app/modules/register/controllers/register_controller.dart b/lib/app/modules/register/controllers/register_controller.dart index fb3d926..fb6d1bb 100644 --- a/lib/app/modules/register/controllers/register_controller.dart +++ b/lib/app/modules/register/controllers/register_controller.dart @@ -67,7 +67,7 @@ class RegisterController extends BaseController { "baseUrl": "https://staging-consent-bb-api.igrant.io/v2/" }); Map responseMap = json.decode(response); - if (responseMap['optIn'] == false) { + if (responseMap['optIn'] == true) { // Handle success showLoading(); shareFirstName.value = firstNameController.text; @@ -341,7 +341,7 @@ class RegisterController extends BaseController { "baseUrl": "https://staging-consent-bb-api.igrant.io/v2/" }); Map responseMap = json.decode(response); - if (responseMap['optIn'] == false) { + if (responseMap['optIn'] == true) { getDataAgreement(sharingtoken:accessToken,sharingDataAgreementID:"65534a939a6116c5c2b98d51",isFlag:true); // Handle success int index = selectedPage.value + 1;