0xProject / 0x-launch-kit-frontend

Apache License 2.0
114 stars 208 forks source link

Unhandled Rejection (Error): Expected tokenAddress to be of type string, encountered: undefined #132

Closed angelorc closed 5 years ago

angelorc commented 5 years ago

Hello, I tried to test the frontend but I get the error in object

git clone https://github.com/0xProject/0x-launch-kit-frontend.git
yarn
yarn start

Then in browser

Unhandled Rejection (Error): Expected tokenAddress to be of type string, encountered: undefined

export const tokenToTokenBalance = async (token: Token, address: string): Promise<TokenBalance> => 
Agupane commented 5 years ago

Hi, which network did you used?, That error it's displayed if you choose a network which we are not currently supporting. A fallback for this case will be added soon.

Agupane commented 5 years ago

This issue was solved time ago. There is also a closed PR in which we display an error message to let the user know that the network is wrong.

In case you still have this problem, feel free to ping or open another issue.