Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NFT transfer proposal info #249

Merged
merged 2 commits into from
Apr 25, 2023
Merged

Fix NFT transfer proposal info #249

merged 2 commits into from
Apr 25, 2023

Conversation

ilikesymmetry
Copy link
Member

No description provided.

@vercel
Copy link

vercel bot commented Apr 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2023 3:48pm

Comment on lines 23 to 29
if (
typeof data === "object" &&
data !== null &&
!Array.isArray(data) &&
data.error
) {
returnData = []
Copy link
Contributor

Choose a reason for hiding this comment

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

this is setting returnData to [] if there is an error case?

Copy link
Contributor

@kristencheung kristencheung Apr 25, 2023

Choose a reason for hiding this comment

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

Could just do an early return here - if the error is being as the data, maybe we should return as

return { data: [], error: data.error, mutate, isLoading }

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