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>
|
</ButtonError>
|
||||||
</AutoColumn>
|
</AutoColumn>
|
||||||
</AutoRow>
|
</AutoRow>
|
||||||
) : permit.state === PermitState.PERMIT_NEEDED ? (
|
) : isValid && permit.state === PermitState.PERMIT_NEEDED ? (
|
||||||
<ButtonYellow
|
<ButtonYellow
|
||||||
onClick={updatePermit}
|
onClick={updatePermit}
|
||||||
disabled={isPermitPending || isApprovalPending}
|
disabled={isPermitPending || isApprovalPending}
|
||||||
|
Loading…
Reference in New Issue
Block a user