fix: display impact before severity (#5678)

This commit is contained in:
Zach Pomerantz 2022-12-13 16:43:06 -05:00 committed by GitHub
parent 0176c74430
commit fd12a0d6e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>
)}