Skip to content

Commit

Permalink
#183 optIn value checking
Browse files Browse the repository at this point in the history
optIn value checking for calling SDK function by changing 'false' to 'true'
  • Loading branch information
lijogeorgep authored and josmilan committed Nov 14, 2023
1 parent daab107 commit cd3706e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class DataAgreementContoller extends BaseController {
"baseUrl": "https://staging-consent-bb-api.igrant.io/v2/"
});
Map<String, dynamic> 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;
Expand Down
4 changes: 2 additions & 2 deletions lib/app/modules/register/controllers/register_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class RegisterController extends BaseController {
"baseUrl": "https://staging-consent-bb-api.igrant.io/v2/"
});
Map<String, dynamic> responseMap = json.decode(response);
if (responseMap['optIn'] == false) {
if (responseMap['optIn'] == true) {
// Handle success
showLoading();
shareFirstName.value = firstNameController.text;
Expand Down Expand Up @@ -341,7 +341,7 @@ class RegisterController extends BaseController {
"baseUrl": "https://staging-consent-bb-api.igrant.io/v2/"
});
Map<String, dynamic> 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;
Expand Down

0 comments on commit cd3706e

Please sign in to comment.