diff --git a/apps/wallet-mobile/src/features/Settings/useCases/changeWalletSettings/ManageCollateral/ManageCollateralScreen.tsx b/apps/wallet-mobile/src/features/Settings/useCases/changeWalletSettings/ManageCollateral/ManageCollateralScreen.tsx index eece263d79..6648dad69a 100644 --- a/apps/wallet-mobile/src/features/Settings/useCases/changeWalletSettings/ManageCollateral/ManageCollateralScreen.tsx +++ b/apps/wallet-mobile/src/features/Settings/useCases/changeWalletSettings/ManageCollateral/ManageCollateralScreen.tsx @@ -54,7 +54,7 @@ export const ManageCollateralScreen = () => { const {openModal, closeModal} = useModal() const strings = useStrings() const balances = useBalances(wallet) - const {navigateToTxReview} = useWalletNavigation() + const {navigateToTxReview, resetToTxHistory} = useWalletNavigation() const {unsignedTxChanged} = useReviewTx() const lockedAmount = asQuantity(wallet.primaryBreakdown.lockedAsStorageCost.toString()) @@ -79,6 +79,7 @@ export const ManageCollateralScreen = () => { const onSuccess = (signedTx: YoroiSignedTx) => { const collateralId = `${signedTx.signedTx.id}:0` setCollateralId(collateralId) + resetToTxHistory() } const createCollateralTransaction = () => { diff --git a/apps/wallet-mobile/src/legacy/Dashboard/ShowFailedTxScreen/FailedTxScreen.tsx b/apps/wallet-mobile/src/legacy/Dashboard/ShowFailedTxScreen/FailedTxScreen.tsx index 2d1a63f810..be7c66df22 100644 --- a/apps/wallet-mobile/src/legacy/Dashboard/ShowFailedTxScreen/FailedTxScreen.tsx +++ b/apps/wallet-mobile/src/legacy/Dashboard/ShowFailedTxScreen/FailedTxScreen.tsx @@ -8,14 +8,14 @@ import {SafeArea} from '../../../components/SafeArea' import {Space} from '../../../components/Space/Space' import {Spacer} from '../../../components/Spacer/Spacer' import {FailedTxIcon} from '../../../features/ReviewTx/illustrations/FailedTxIcon' -import {useBlockGoBack} from '../../../kernel/navigation' -import {useNavigateTo} from '../Dashboard' +import {useBlockGoBack, useWalletNavigation} from '../../../kernel/navigation' export const FailedTxScreen = () => { useBlockGoBack() const {styles} = useStyles() const strings = useStrings() - const navigateTo = useNavigateTo() + + const {resetToTxHistory} = useWalletNavigation() return ( @@ -34,7 +34,7 @@ export const FailedTxScreen = () => { -