Skip to content

Commit

Permalink
fix: close summary after confirmation (#3233)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzmp authored Feb 3, 2022
1 parent a323a5c commit 1c278d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/components/Swap/SwapButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ export default function SwapButton({ disabled }: SwapButtonProps) {
//@TODO(ianlapham): add error handling
console.log(error)
})
.finally(() => {
setActiveTrade(undefined)
})
}, [addTransaction, independentField, inputCurrencyAmount, outputCurrencyAmount, setDisplayTxHash, swapCallback])

return (
Expand Down

0 comments on commit 1c278d5

Please sign in to comment.