only validate address in contact address entry form if a coin is selected

This commit is contained in:
julian 2023-03-28 09:17:22 -06:00
parent b5488c4c6c
commit 4afa344965

View file

@ -57,7 +57,10 @@ class AddressEntryData extends ChangeNotifier {
}
bool get isValidAddress {
if (_address == null || coin == null) {
if ( coin == null) {
return true;
}
if (_address == null) {
return false;
}
return AddressUtils.validateAddress(_address!, _coin!);