diff --git a/ui/app/components/app/modals/edit-approval-permission/edit-approval-permission.component.js b/ui/app/components/app/modals/edit-approval-permission/edit-approval-permission.component.js index 774280dd5036..ce8fc4a05bd2 100644 --- a/ui/app/components/app/modals/edit-approval-permission/edit-approval-permission.component.js +++ b/ui/app/components/app/modals/edit-approval-permission/edit-approval-permission.component.js @@ -23,7 +23,7 @@ export default class EditApprovalPermission extends PureComponent { state = { customSpendLimit: this.props.customTokenAmount, - selectedOption: this.props.customTokenAmount ? 'custom' : 'unlimited', + selectedOptionIsUnlimited: !this.props.customTokenAmount, } renderModalContent () { @@ -38,6 +38,7 @@ export default class EditApprovalPermission extends PureComponent { origin, } = this.props const { name, address } = selectedIdentity || {} + const { selectedOptionIsUnlimited } = this.state return (