Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix unWatchUserProfile error when database is not setup
a# Changes to be committed:
  • Loading branch information
ssdns committed Dec 14, 2020
commit fa2ec8648526d7867de8cb2b2823e8731e3bbe25
2 changes: 1 addition & 1 deletion src/actions/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function unWatchUserProfile(firebase) {
if (useFirestoreForProfile && firebase.firestore) {
// Call profile onSnapshot unsubscribe stored on profileWatch
firebase._.profileWatch()
} else {
} else if (firebase.database && userProfile) {
firebase
.database()
.ref()
Expand Down