From 7e16bb9e4935c2807b280284e57d6c400f5e22c7 Mon Sep 17 00:00:00 2001 From: Jonah Lin <57741810+linjonah@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:59:08 -0700 Subject: [PATCH] Reset bridge inputs on disconnect --- packages/synapse-interface/components/Portfolio/Portfolio.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/synapse-interface/components/Portfolio/Portfolio.tsx b/packages/synapse-interface/components/Portfolio/Portfolio.tsx index 8ae441272e..40e2cbfd2f 100644 --- a/packages/synapse-interface/components/Portfolio/Portfolio.tsx +++ b/packages/synapse-interface/components/Portfolio/Portfolio.tsx @@ -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() @@ -42,6 +43,7 @@ export const Portfolio = () => { onDisconnect() { dispatch(resetPortfolioState()) dispatch(resetTransactionsState()) + dispatch(resetBridgeInputs()) }, })