mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fixed approve confirmation logic (#12511)
This commit is contained in:
parent
1390d72259
commit
0c229e2d4a
@ -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…
Reference in New Issue
Block a user