fix: add mounted guards after async mintTokens call
This commit is contained in:
@@ -775,8 +775,10 @@ class _RequestScreenState extends State<RequestScreen> {
|
||||
_amount,
|
||||
description,
|
||||
);
|
||||
if (!mounted) return;
|
||||
_mintSubscription = mintStream.listen(_onMintEvent);
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_status = RequestStatus.error;
|
||||
_errorMessage = e.toString();
|
||||
|
||||
Reference in New Issue
Block a user