fixing bugs

This commit is contained in:
Arjun Patel
2022-02-11 12:18:45 -08:00
parent 3e036bceb5
commit 1a596f5a69
2 changed files with 10 additions and 1 deletions
@@ -176,6 +176,7 @@ export default function CreateConversation() {
});
} catch (error) {
toast.error("Problem in creating conversation");
console.log(error);
}
setIsSubmitting(false);
+9 -1
View File
@@ -11,7 +11,11 @@
// Import the functions you need from the SDKs you need
import * as firebase from "firebase/app";
// import { getAnalytics } from "firebase/analytics";
import { getFirestore, enableIndexedDbPersistence } from "firebase/firestore";
import {
getFirestore,
enableIndexedDbPersistence,
initializeFirestore,
} from "firebase/firestore";
import {
browserSessionPersistence,
getAuth,
@@ -39,6 +43,10 @@ console.log("initialized firebase");
// const analytics = getAnalytics(app);
initializeFirestore(app, {
ignoreUndefinedProperties: true,
});
// Initialize firestore persistence for data caching
export const firestoreDb = getFirestore(app);