fix: show error when present (not approval) (#5662)

This commit is contained in:
Zach Pomerantz 2022-12-12 13:51:38 -05:00 committed by GitHub
parent aa29ea80a9
commit 06c85b744f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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