mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-25 08:38:45 +00:00
fix: provider refresh causing issues
This commit is contained in:
parent
318932022e
commit
9285027006
1 changed files with 3 additions and 1 deletions
|
@ -882,7 +882,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
|
||||||
_cryptoFocus.addListener(() {
|
_cryptoFocus.addListener(() {
|
||||||
if (!_cryptoFocus.hasFocus && !_baseFocus.hasFocus) {
|
if (!_cryptoFocus.hasFocus && !_baseFocus.hasFocus) {
|
||||||
if (ref.read(pSendAmount) == null) {
|
if (ref.read(pSendAmount) == null) {
|
||||||
ref.refresh(sendAmountProvider);
|
if (ref.read(sendAmountProvider) != Amount.zero && mounted) {
|
||||||
|
ref.read(sendAmountProvider.state).state = Amount.zero;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ref.read(sendAmountProvider.state).state = ref.read(pSendAmount)!;
|
ref.read(sendAmountProvider.state).state = ref.read(pSendAmount)!;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue