Skip to content

Commit

Permalink
feat: Remove mandatory:true logic from display #2559
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Apr 3, 2024
1 parent 72c930b commit 6524dce
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,6 @@ class CredentialSubjectData extends StatelessWidget {

if (value.isEmpty) return Container();

if (value.containsKey('mandatory')) {
final mandatory = value['mandatory'];
if (mandatory is! bool) return Container();

if (!mandatory) return Container();
}

if (value.containsKey('display')) {
final displays = value['display'];
if (displays is! List<dynamic>) return Container();
Expand Down
5 changes: 0 additions & 5 deletions lib/selective_disclosure/selective_disclosure.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ class SelectiveDisclosure {
if (picture == null) return null;
if (picture is! Map<String, dynamic>) return null;

if (picture.containsKey('mandatory')) {
final mandatory = picture['mandatory'];
if (mandatory is! bool) return null;
}

final valueType = picture['value_type'];
if (valueType == null) return null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,6 @@ class DisplaySelectiveDisclosure extends StatelessWidget {

if (value.isEmpty) return null;

if (value.containsKey('mandatory')) {
final mandatory = value['mandatory'];
if (mandatory is! bool) return null;

// if (!mandatory) return null;
}

if (value.containsKey('display')) {
final displays = value['display'];
if (displays is! List<dynamic>) return null;
Expand Down

0 comments on commit 6524dce

Please sign in to comment.