fix: add mounted guards after async mintTokens call

This commit is contained in:
Forte11Cuba
2026-04-02 01:52:53 -06:00
parent 6596aa963a
commit b01b658b93
@@ -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();