Skip to content

fix: update firebaseApp check in makeDocumentSnapShot#330

Open
IzaakGough wants to merge 2 commits into
masterfrom
@invertase/fix-check-firebaseapp-prop
Open

fix: update firebaseApp check in makeDocumentSnapShot#330
IzaakGough wants to merge 2 commits into
masterfrom
@invertase/fix-check-firebaseapp-prop

Conversation

@IzaakGough

Copy link
Copy Markdown

Fixes #79

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates makeDocumentSnapshot to correctly use options.firebaseApp instead of options.app when retrieving the project ID, and adds a corresponding unit test. The review feedback correctly identifies a potential TypeScript compilation error where options is accessed directly without checking if it is defined, and suggests using modern optional chaining for better type safety.

Comment thread src/providers/firestore.ts
@IzaakGough IzaakGough marked this pull request as ready for review July 1, 2026 09:31
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.

makeDocumentSnapshot check wrong option names.

2 participants