mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
only validate address in contact address entry form if a coin is selected
This commit is contained in:
parent
b5488c4c6c
commit
4afa344965
1 changed files with 4 additions and 1 deletions
|
@ -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!);
|
||||
|
|
Loading…
Reference in a new issue