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 Await JSON response from fetch #489

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

bheesham
Copy link
Member

@bheesham bheesham commented Dec 9, 2024

This caused a bug lower down where we'd check

    if (Object.keys(profile).length !== 0) {

The JSON promise certainly has keys, but it's not quite what we want here.

This caused a bug lower down where we'd check

        if (Object.keys(profile).length !== 0) {

The JSON promise certainly has keys, but it's not quite what we want here.
@bheesham bheesham requested a review from dividehex December 9, 2024 20:43
Copy link
Contributor

@dividehex dividehex left a comment

Choose a reason for hiding this comment

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

🚀 Good fix! Approved

@bheesham bheesham merged commit 7013b8a into mozilla-iam:master Dec 9, 2024
1 check passed
@bheesham bheesham deleted the await-response-from-fetch branch December 9, 2024 20:52
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