fix: show error when present (not approval) (#5662)
This commit is contained in:
parent
aa29ea80a9
commit
06c85b744f
@ -796,7 +796,7 @@ export default function Swap({ className }: { className?: string }) {
|
||||
</ButtonError>
|
||||
</AutoColumn>
|
||||
</AutoRow>
|
||||
) : permit.state === PermitState.PERMIT_NEEDED ? (
|
||||
) : isValid && permit.state === PermitState.PERMIT_NEEDED ? (
|
||||
<ButtonYellow
|
||||
onClick={updatePermit}
|
||||
disabled={isPermitPending || isApprovalPending}
|
||||
|
Loading…
Reference in New Issue
Block a user