Fixed approve confirmation logic (#12511)

feature/default_network_editable
filipsekulic 3 years ago committed by GitHub
parent 1390d72259
commit 0c229e2d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      ui/components/app/modals/edit-approval-permission/edit-approval-permission.component.js

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

Loading…
Cancel
Save