mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
fix: allow address only edits (#2233)
This commit is contained in:
@@ -57,7 +57,11 @@ abstract class ContactViewModelBase with Store {
|
||||
state = IsExecutingState();
|
||||
final now = DateTime.now();
|
||||
|
||||
if (doesContactNameExist(name)) {
|
||||
final nameExists = _contact == null
|
||||
? doesContactNameExist(name)
|
||||
: doesContactNameExist(name) && _contact.original.name != name;
|
||||
|
||||
if (nameExists) {
|
||||
state = FailureState(S.current.contact_name_exists);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user