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

Replace null check with check of dataExists #911

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Conversation

matthew-white
Copy link
Member

While reviewing #910, I took a look at how the keys resource is used in various components. I noticed a line that uses keys and has a small issue. It checks whether keys is null, but because keys is a resource, it can never be null. I replaced the null check with a check that keys has data.

Before submitting this PR, please make sure you have:

  • run npm run test and npm run lint and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

@matthew-white matthew-white requested a review from ktuite December 11, 2023 20:49
@matthew-white matthew-white merged commit baa59d4 into master Dec 11, 2023
@matthew-white matthew-white deleted the keys-exist branch December 11, 2023 21:32
matthew-white pushed a commit to alxndrsn/odk-central-frontend that referenced this pull request May 9, 2024
* fixes getodk#911: add warning to encryption popup

* update text
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