diff --git a/apps/desktop-wallet/src/features/send/SendModal.tsx b/apps/desktop-wallet/src/features/send/SendModal.tsx index ba887aaf6..54ecafbac 100644 --- a/apps/desktop-wallet/src/features/send/SendModal.tsx +++ b/apps/desktop-wallet/src/features/send/SendModal.tsx @@ -27,6 +27,7 @@ import { useTranslation } from 'react-i18next' import styled from 'styled-components' import { fadeIn } from '@/animations' +import queryClient from '@/api/queryClient' import { buildSweepTransactions } from '@/api/transactions' import PasswordConfirmation from '@/components/PasswordConfirmation' import useAnalytics from '@/features/analytics/useAnalytics' @@ -312,6 +313,12 @@ function SendModal({ } }, [onClose, step]) + useEffect(() => { + if (step === 'build-tx') { + queryClient.invalidateQueries({ queryKey: ['address', addressesData.fromAddress.hash, 'balance'] }) + } + }, [addressesData.fromAddress.hash, step]) + const confirmPassword = () => setStep('password-check') const onBackCallback = {