mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +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(() {
|
||||
if (!_cryptoFocus.hasFocus && !_baseFocus.hasFocus) {
|
||||
if (ref.read(pSendAmount) == null) {
|
||||
ref.refresh(sendAmountProvider);
|
||||
if (ref.read(sendAmountProvider) != Amount.zero && mounted) {
|
||||
ref.read(sendAmountProvider.state).state = Amount.zero;
|
||||
}
|
||||
} else {
|
||||
ref.read(sendAmountProvider.state).state = ref.read(pSendAmount)!;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue