Skip to content

Commit

Permalink
It looks like we cannot transfer gender (male) and nationalities
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkbee1 committed Dec 4, 2024
1 parent bdfa0d0 commit 27bf683
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:altme/app/app.dart';
import 'package:altme/dashboard/dashboard.dart';
import 'package:altme/oidc4vc/verify_encoded_data.dart';
import 'package:altme/polygon_id/polygon_id.dart';
import 'package:altme/selective_disclosure/selective_disclosure.dart';
import 'package:did_kit/did_kit.dart';
import 'package:dio/dio.dart';
import 'package:equatable/equatable.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class SelectiveDisclosureDisplayMap {
.indexWhere(
(entry) => entry.value.toString().contains(element.key.toString()),
);
if (index == -1) isDisabled = true;
if (index == -1 && element.threeDotValue == null) isDisabled = true;
if (value['_sd'] != null) {
value.addAll(
SelectiveDisclosureDisplayMap(
Expand All @@ -235,7 +235,7 @@ class SelectiveDisclosureDisplayMap {
builtMap[title ?? element.key.toString()] = {
'mapKey': element.key.toString(),
'claimKey': element.key.toString(),
'threeDotValue': null,
'threeDotValue': element.threeDotValue,
'value': value,
'hasCheckbox': !isDisabled && isPresentation,
'isCompulsary': isCompulsary,
Expand Down Expand Up @@ -312,7 +312,7 @@ class SelectiveDisclosureDisplayMap {
.indexWhere(
(entry) => entry.value.toString().contains(claimKey),
);
if (indexInDisclosure == -1) {
if (indexInDisclosure == -1 && element.threeDotValue == null) {
isDisabled = true;
} else if (isDisabled) {
// Don't add in the map if limitDisclosure is required and the
Expand Down

0 comments on commit 27bf683

Please sign in to comment.