aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/send-content/send-to-row/send-to-row.component.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/send/send-content/send-to-row/send-to-row.component.js')
-rw-r--r--ui/app/components/send/send-content/send-to-row/send-to-row.component.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/app/components/send/send-content/send-to-row/send-to-row.component.js b/ui/app/components/send/send-content/send-to-row/send-to-row.component.js
index ce5325314..dbcc4ecd6 100644
--- a/ui/app/components/send/send-content/send-to-row/send-to-row.component.js
+++ b/ui/app/components/send/send-content/send-to-row/send-to-row.component.js
@@ -12,9 +12,11 @@ export default class SendToRow extends Component {
inError: PropTypes.bool,
network: PropTypes.string,
openToDropdown: PropTypes.func,
+ selectedToken: PropTypes.object,
to: PropTypes.string,
toAccounts: PropTypes.array,
toDropdownOpen: PropTypes.bool,
+ tokens: PropTypes.array,
updateGas: PropTypes.func,
updateSendTo: PropTypes.func,
updateSendToError: PropTypes.func,
@@ -26,8 +28,8 @@ export default class SendToRow extends Component {
}
handleToChange (to, nickname = '', toError) {
- const { hasHexData, updateSendTo, updateSendToError, updateGas } = this.props
- const toErrorObject = getToErrorObject(to, toError, hasHexData)
+ const { hasHexData, updateSendTo, updateSendToError, updateGas, tokens, selectedToken } = this.props
+ const toErrorObject = getToErrorObject(to, toError, hasHexData, tokens, selectedToken)
updateSendTo(to, nickname)
updateSendToError(toErrorObject)
if (toErrorObject.to === null) {