From 6e20ee198ff4b28106814ef00f4ed1e241322b04 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Fri, 23 Aug 2024 17:27:11 +0200 Subject: [PATCH] Don't show bio status for PinPolicy.never --- lib/piv/views/cert_info_view.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/piv/views/cert_info_view.dart b/lib/piv/views/cert_info_view.dart index 88018a19..945b1a7c 100644 --- a/lib/piv/views/cert_info_view.dart +++ b/lib/piv/views/cert_info_view.dart @@ -47,7 +47,9 @@ class CertInfoTable extends ConsumerWidget { metadata.keyType.getDisplayName(l10n), keys.slotMetadataKeyType ), - if (metadata != null && supportsBio) + if (metadata != null && + metadata.pinPolicy != PinPolicy.never && + supportsBio) l10n.s_biometrics: ( [PinPolicy.matchAlways, PinPolicy.matchOnce] .contains(metadata.pinPolicy)