Skip to content

Commit

Permalink
Merge branch 'staging' into dev
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/store/store.tsx
  • Loading branch information
andreymikhadyuk committed Nov 20, 2023
2 parents 87f0bb7 + 09efc2c commit 642a9ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/Discussion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ class DiscussionService {
const query = this.getDiscussionCollection().doc(discussionId);

return query.onSnapshot((snapshot) => {
callback(transformFirebaseDataSingle<Discussion>(snapshot));
const discussion = snapshot.data();

if (discussion) {
callback(discussion);
}
});
};

Expand Down

0 comments on commit 642a9ca

Please sign in to comment.