Git Product home page Git Product logo

Comments (5)

defispartan avatar defispartan commented on July 19, 2024 1

Yeah, I think there might be an error case when a user doesn't have any NFTs. I'm switching all of the queries to subscriptions tonight and will also look into this

from nonfungibletime.

jsur avatar jsur commented on July 19, 2024

This query

https://github.com/WeAreNewt/NonFungibleTime/blob/main/packages/frontend/src/lib/providers/app-data-provider.tsx#L44

returns only data: {user: null}, and data.user is then used as userData in Profile for owners:

https://github.com/WeAreNewt/NonFungibleTime/blob/main/packages/frontend/src/modules/Profile/index.tsx#L65.

Apparently query ProfileNfts($user: ID!) should return created and owned NFTs, but maybe when the query returns nothing, Profile could just say that no NFTs found for this account or something along those lines?

from nonfungibletime.

0xjim avatar 0xjim commented on July 19, 2024

This looks resolved?

from nonfungibletime.

0xjim avatar 0xjim commented on July 19, 2024

This looks resolved?

from nonfungibletime.

defispartan avatar defispartan commented on July 19, 2024

I think this specific issue was resolved but I'll leave this open because the Profile loading / error logic still needs some work

from nonfungibletime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.