Commit 1c278d50 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: close summary after confirmation (#3233)

parent a323a5c4
...@@ -148,6 +148,9 @@ export default function SwapButton({ disabled }: SwapButtonProps) { ...@@ -148,6 +148,9 @@ export default function SwapButton({ disabled }: SwapButtonProps) {
//@TODO(ianlapham): add error handling //@TODO(ianlapham): add error handling
console.log(error) console.log(error)
}) })
.finally(() => {
setActiveTrade(undefined)
})
}, [addTransaction, independentField, inputCurrencyAmount, outputCurrencyAmount, setDisplayTxHash, swapCallback]) }, [addTransaction, independentField, inputCurrencyAmount, outputCurrencyAmount, setDisplayTxHash, swapCallback])
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment