substrate-collectables-workshop icon indicating copy to clipboard operation
substrate-collectables-workshop copied to clipboard

Uncaught TypeError: Cannot read property 'name' of undefined @ KittyCard

Open mitsu1124 opened this issue 5 years ago • 1 comments

Hi, I'm on the below page in the tutorial.

https://substrate.dev/substrate-collectables-workshop/#/4/rendering-kitties

I got an error like below in the console.

Could anyone figure out the reason?

image

mitsu1124 avatar Dec 06 '19 23:12 mitsu1124

Hi, I commented out the line inside KittyCards/index.jsx, readyRender() inside KittyCard.

image

I got Kitties displayed.

image

Maybe owner.name didn't initialize properly?

mitsu1124 avatar Dec 07 '19 23:12 mitsu1124