Skip to content

Commit

Permalink
Fixed approve confirmation logic (#12511)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsekulic authored Nov 2, 2021
1 parent 1390d72 commit 0c229e2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ export default class EditApprovalPermission extends PureComponent {
'edit-approval-permission__edit-section__option-label--selected': selectedOptionIsUnlimited,
})}
>
{new BigNumber(tokenAmount).lessThan(
new BigNumber(tokenBalance),
{new BigNumber(tokenAmount).equals(
new BigNumber(MAX_UNSIGNED_256_INT),
)
? t('proposedApprovalLimit')
: t('unlimited')}
? t('unlimited')
: t('proposedApprovalLimit')}
</div>
<div className="edit-approval-permission__edit-section__option-description">
{t('spendLimitRequestedBy', [origin])}
Expand Down

0 comments on commit 0c229e2

Please sign in to comment.