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(partnerConfig): fix fetchPartnerData query to prevent undefined URL Error #254

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

aeddaqqa
Copy link

@aeddaqqa aeddaqqa commented Sep 30, 2024

This PR addresses an issue where the fetchPartnerData query was sometimes resulting in a "Cannot read properties of undefined (reading 'url')" error. The main changes include:

  • Enhanced error handling in the query function to ensure it always returns a valid URL or throws a meaningful error.
  • Added checks to verify the availability of required data (like selectedNetwork) before use.
  • Wrapped the transformResponse function in a try-catch block to handle potential errors during data transformation.
  • Improved error reporting in components using this query.

@aeddaqqa aeddaqqa changed the title fix(partnerConfig): fix fetchPartnerData query to prevent undefined U… fix(partnerConfig): fix fetchPartnerData query to prevent undefined URL Error Sep 30, 2024
@aeddaqqa aeddaqqa merged commit 86767c2 into suite Sep 30, 2024
4 checks passed
@aeddaqqa aeddaqqa deleted the aeddaqqa/fixes branch September 30, 2024 13:29
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