Commit fd12a0d6 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: display impact before severity (#5678)

parent 0176c744
......@@ -873,10 +873,10 @@ export default function Swap({ className }: { className?: string }) {
swapInputError
) : routeIsSyncing || routeIsLoading ? (
<Trans>Swap</Trans>
) : priceImpactSeverity > 2 ? (
<Trans>Swap Anyway</Trans>
) : priceImpactTooHigh ? (
<Trans>Price Impact Too High</Trans>
) : priceImpactSeverity > 2 ? (
<Trans>Swap Anyway</Trans>
) : (
<Trans>Swap</Trans>
)}
......
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