Skip to content
Snippets Groups Projects
Commit b56149d4 authored by vjrj's avatar vjrj
Browse files

Don't set state when adding to contacts

parent 19224efa
No related branches found
No related tags found
No related merge requests found
......@@ -237,16 +237,16 @@ class _PayContactSearchPageState extends State<PayContactSearchPage> {
color: isFavorite ? Colors.red.shade400 : null,
),
onPressed: () {
setState(() {
if (!isFavorite) {
contactsCubit.addContact(contact);
} else {
contactsCubit.removeContact(Contact(
pubKey: contact.pubKey,
));
}
});
// setState(() {
if (!isFavorite) {
contactsCubit.addContact(contact);
} else {
contactsCubit.removeContact(Contact(
pubKey: contact.pubKey,
));
}
});
// });
}),
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment