Skip to content

Commit

Permalink
Handles unsupported network from chain selection
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha committed Apr 17, 2024
1 parent 83439f8 commit fadc33e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/synapse-interface/components/Portfolio/Portfolio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ export const Portfolio = () => {
)

useEffect(() => {
if (!chain) {
dispatch(setFromChainId(null))
}
if (address && chain?.id) {
dispatch(setFromChainId(chain.id))
}
Expand Down

0 comments on commit fadc33e

Please sign in to comment.