isUnique=true for null widget.credentials

This commit is contained in:
Adam Velebil 2022-09-06 13:55:59 +02:00
parent a3d89aa8d3
commit 8b52c20d16
No known key found for this signature in database
GPG Key ID: AC6D6B9D715FC084

View File

@ -164,7 +164,7 @@ class _OathAddAccountPageState extends ConsumerState<OathAddAccountPage> {
element.name == _accountController.text.trim() &&
(element.issuer ?? '') == _issuerController.text.trim())
.isEmpty ??
false;
true;
final isValid = _accountController.text.trim().isNotEmpty &&
secret.isNotEmpty &&