NovaDAOx / homepage

https://novadaodev.vercel.app
1 stars 4 forks source link

ParseError: 141 No address provided or logged-in user found Error: No address provided or logged-in user found #12

Closed pawanlapits closed 2 years ago

pawanlapits commented 2 years ago

image This error comes when metamask not connected on staking page.

dave-16 commented 2 years ago

yes you are right this kind of Error is occurring because their is no user connected to Metamask right? so the user have to Signin using Metamask to solve this error . am I right ? please correct me if I dont get it.

pawanlapits commented 2 years ago

we have to handle this case

jb4earth commented 2 years ago

We shouldn't call moralis until user is logged in

Thanks for reporting this issue

dave-16 commented 2 years ago

no address provided fixed by initiating moralis on staking page and only when user is logged in

https://github.com/NovaDAOx/homepage/blob/4b5d3c4535c05860bbd9b8084ce8b5c3839fdbab/src/app/index/staking/stake.component.ts#L144

Thanks for reporting.