Skip to content

Conversation

@TylerDiorio
Copy link
Contributor

Issue

useFlagging.ts was trying to JSON.parse() the error message string, which doesn't work because ApiError.message is just a plain string, not a JSON string. Additionally, it was looking for nested data objects that don't exist

Screenshot 2025-10-17 at 6 40 32 PM

Solution

Now it correctly accesses the errors property directly from the ApiError object, where the backend response data is actually stored.

Screenshot 2025-10-17 at 6 37 21 PM

@TylerDiorio TylerDiorio requested a review from a team as a code owner October 18, 2025 01:40
@vercel
Copy link
Contributor

vercel bot commented Oct 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
web Ready Ready Preview Comment Oct 18, 2025 1:41am

💡 Enable Vercel Agent with $100 free credit for automated AI reviews

@sonarqubecloud
Copy link

@TylerDiorio TylerDiorio merged commit fd1f744 into main Oct 21, 2025
4 checks passed
@TylerDiorio TylerDiorio deleted the 996/flag-error branch October 21, 2025 01:09
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.

2 participants