Skip to content

Commit

Permalink
chore: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-tychon committed Jan 22, 2025
1 parent d1b7c36 commit 97f32bd
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ class ContactListHeader extends StatelessWidget {
TextButton(
onPressed: () async {
final pubkey = await NftSelectFriendRoute().push<String>(context);
if (pubkey != null) {
if (context.mounted) {
unawaited(ContactRoute(contactId: pubkey).push<void>(context));
}
if (pubkey != null && context.mounted) {
unawaited(ContactRoute(contactId: pubkey).push<void>(context));
}
},
child: Padding(
Expand Down

0 comments on commit 97f32bd

Please sign in to comment.