Skip to content

Commit

Permalink
Fix transaction details navigation from SwapSuccessScene
Browse files Browse the repository at this point in the history
  • Loading branch information
samholmes committed Oct 30, 2024
1 parent 91ebdce commit c3e5d13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/scenes/SwapSuccessScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c3e5d13

Please sign in to comment.