Skip to content

Add in condition to handle no account id. EG empty account, don't wan…#251

Merged
seeker25 merged 3 commits intobcgov:mainfrom
seeker25:undefined_org_id_products
Jun 3, 2025
Merged

Add in condition to handle no account id. EG empty account, don't wan…#251
seeker25 merged 3 commits intobcgov:mainfrom
seeker25:undefined_org_id_products

Conversation

@seeker25
Copy link
Collaborator

@seeker25 seeker25 commented Jun 3, 2025

…t to query auth-api with undefined

Comment on lines +146 to +151
if (!accountId) {
const error = 'No accountId to fetch products - no memberships to an org, or call to get account id failing'
console.error(error)
throw new Error(error)
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

image

@seeker25 seeker25 merged commit 053ff0b into bcgov:main Jun 3, 2025
7 of 8 checks passed
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