mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 03:06:29 +00:00
mounted check
This commit is contained in:
parent
b1d5b7f6ea
commit
51c00372e4
1 changed files with 10 additions and 8 deletions
|
@ -104,15 +104,17 @@ class _AddCustomTokenViewState extends ConsumerState<AddCustomTokenView> {
|
|||
nameController.text = "";
|
||||
symbolController.text = "";
|
||||
decimalsController.text = "";
|
||||
unawaited(
|
||||
showDialog<void>(
|
||||
context: context,
|
||||
builder: (context) => StackOkDialog(
|
||||
title: "Failed to look up token",
|
||||
message: response.exception?.message,
|
||||
if (mounted) {
|
||||
unawaited(
|
||||
showDialog<void>(
|
||||
context: context,
|
||||
builder: (context) => StackOkDialog(
|
||||
title: "Failed to look up token",
|
||||
message: response.exception?.message,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
}
|
||||
}
|
||||
setState(() {
|
||||
addTokenButtonEnabled = currentToken != null;
|
||||
|
|
Loading…
Reference in a new issue