Commit 37091394 authored by Chi Kei Chan's avatar Chi Kei Chan

Check web3 for existence

parent d5643469
......@@ -142,7 +142,7 @@ class CurrencyInputPanel extends Component {
results = fuse.search(this.state.searchQuery);
}
if (!results.length && web3.utils.isAddress(searchQuery)) {
if (!results.length && web3 && web3.utils && web3.utils.isAddress(searchQuery)) {
const { label } = selectors().getBalance(account, searchQuery);
return [
<div key="token-modal-no-exchange" className="token-modal__token-row token-modal__token-row--no-exchange">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment