Skip to content

Conversation

@KingZee
Copy link
Contributor

@KingZee KingZee commented Oct 22, 2020

Once a project is submitted, the page goes blank, after looking it up it was from the Array.reduce trying to access .id of a null value. I couldn't further test any other errors that might be caused through this since it requires a tx confirmation. Will look more into it and see if there's more potential issues.

[],
)
? data.user.projects.reduce((acc, current) => {
if(current) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could keep it simple return current && current.Id ? acc.concat(current.id) : acc;

@nenadjaja
Copy link
Contributor

@KingZee - what do you mean by "the page goes blank" - which page? It redirects to the Profile page and uses optimistic UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants