From c3e5d139c4c881ef3f7067473c1d98f1fd32beb6 Mon Sep 17 00:00:00 2001 From: Sam Holmes Date: Wed, 30 Oct 2024 15:08:41 -0700 Subject: [PATCH] Fix transaction details navigation from SwapSuccessScene --- src/components/scenes/SwapSuccessScene.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/scenes/SwapSuccessScene.tsx b/src/components/scenes/SwapSuccessScene.tsx index 512f10676c7..fbda4e15fb0 100644 --- a/src/components/scenes/SwapSuccessScene.tsx +++ b/src/components/scenes/SwapSuccessScene.tsx @@ -42,11 +42,15 @@ export const SwapSuccessScene = (props: Props) => { const handleDone = useHandler(() => { setShowButton(false) + // Reset swap navigation stack: navigation.navigate('edgeTabs', { screen: 'swapTab', params: { screen: 'swapCreate' } }) }) const handleTransactionDetails = useHandler(() => { - navigation.replace('transactionDetails', { edgeTransaction, walletId, onDone: handleDone }) + // Reset swap navigation stack: + navigation.navigate('edgeTabs', { screen: 'swapTab', params: { screen: 'swapCreate' } }) + // Navigate to transaction details: + navigation.navigate('transactionDetails', { edgeTransaction, walletId, onDone: handleDone }) }) useAsyncEffect(