diff --git a/apps/namada-interface/src/App/Token/TokenSend/TokenSendForm.tsx b/apps/namada-interface/src/App/Token/TokenSend/TokenSendForm.tsx index 133c60d9c6f..e129b0cc044 100644 --- a/apps/namada-interface/src/App/Token/TokenSend/TokenSendForm.tsx +++ b/apps/namada-interface/src/App/Token/TokenSend/TokenSendForm.tsx @@ -9,6 +9,7 @@ import { AccountsState } from "slices/accounts"; import { clearEvents, submitTransferTransaction, + actionTypes, TransfersState, TransferType, } from "slices/transfers"; @@ -36,6 +37,7 @@ import { Icon, IconName } from "components/Icon"; import { useNavigate } from "react-router-dom"; import { TopLevelRoute } from "App/types"; import { ColorMode, DesignConfiguration } from "utils/theme"; +import { NotificationsState } from "slices/notifications"; enum ComponentColor { GasButtonBorder, @@ -156,8 +158,15 @@ const TokenSendForm = ({ ); const balancesForChain = balancesState[chainId] || {}; - const { isTransferSubmitting, transferError, events } = - useAppSelector((state) => state.transfers); + const isTransferSubmitting = useAppSelector((state) => + state.notifications.pendingActions.includes( + actionTypes.SUBMIT_TRANSFER_ACTION_TYPE + ) + ); + + const { transferError } = useAppSelector( + (state) => state.transfers + ); const transparentAndShieldedAccounts = { ...derivedAccounts, @@ -269,6 +278,7 @@ const TokenSendForm = ({ amount, token: tokenType, feeAmount: gasFee, + notify: true }) ); } @@ -423,15 +433,6 @@ const TokenSendForm = ({ {transferError && {transferError}} - {isTransferSubmitting && ( - Submitting transfer - )} - {events && ( - <> - Transfer successful! - Gas used: {events.gas} - - )} @@ -439,6 +440,7 @@ const TokenSendForm = ({