Skip to content

Commit 3b33bf8

Browse files
authored
fix: reset swap/bridge state after submission (#15288)
<!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** Resets swap/bridge state upon successful submission of a Solana swap/bridge. <!-- Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions: 1. What is the reason for the change? 2. What is the improvement/solution? --> ## **Related issues** Fixes: ## **Manual testing steps** 1. Go to swap on Solana 2. Submit swap 3. Go back to swap 4. See clean state ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <!-- [screenshots/recordings] --> ### **After** <!-- [screenshots/recordings] --> ## **Pre-merge author checklist** - [x] I’ve followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
1 parent 8f1f519 commit 3b33bf8

File tree

1 file changed

+1
-0
lines changed
  • app/components/UI/Bridge/Views/BridgeView

1 file changed

+1
-0
lines changed

app/components/UI/Bridge/Views/BridgeView/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ const BridgeView = () => {
251251
// Necessary because snaps prevents navigation after tx is submitted
252252
if (isSolanaSwap || isSolanaToEvm) {
253253
navigation.navigate(Routes.TRANSACTIONS_VIEW);
254+
dispatch(setIsSubmittingTx(false));
254255
}
255256
await submitBridgeTx({
256257
quoteResponse: activeQuote,

0 commit comments

Comments
 (0)