Skip to content

Commit

Permalink
Reset bridge inputs on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Oct 9, 2023
1 parent 1666600 commit 7e16bb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/synapse-interface/components/Portfolio/Portfolio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { BridgeState } from '@/slices/bridge/reducer'
import { isValidAddress } from '@/utils/isValidAddress'
import { Activity } from './Activity'
import { ViewSearchAddressBanner } from './SearchBar'
import { resetBridgeInputs } from '@/slices/bridge/actions'

export const Portfolio = () => {
const dispatch = useAppDispatch()
Expand All @@ -42,6 +43,7 @@ export const Portfolio = () => {
onDisconnect() {
dispatch(resetPortfolioState())
dispatch(resetTransactionsState())
dispatch(resetBridgeInputs())
},
})

Expand Down

0 comments on commit 7e16bb9

Please sign in to comment.