diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/pages/settings/settings-tab/settings-tab.component.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/app/components/pages/settings/settings-tab/settings-tab.component.js b/ui/app/components/pages/settings/settings-tab/settings-tab.component.js index eee472a00..16afa85cb 100644 --- a/ui/app/components/pages/settings/settings-tab/settings-tab.component.js +++ b/ui/app/components/pages/settings/settings-tab/settings-tab.component.js @@ -232,6 +232,9 @@ export default class SettingsTab extends PureComponent { const { setRpcTarget, displayWarning } = this.props if (validUrl.isWebUri(newRpc)) { + if (!!chainId && Number.isNaN(parseInt(chainId))) { + return displayWarning(`${this.context.t('invalidInput')} chainId`) + } setRpcTarget(newRpc, chainId, ticker, nickname) } else { const appendedRpc = `http://${newRpc}` |