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) { } catch (error) {
toast.error("Problem in creating conversation"); toast.error("Problem in creating conversation");
console.log(error);
} }
setIsSubmitting(false); setIsSubmitting(false);
+9 -1
View File
@@ -11,7 +11,11 @@
// Import the functions you need from the SDKs you need // Import the functions you need from the SDKs you need
import * as firebase from "firebase/app"; import * as firebase from "firebase/app";
// import { getAnalytics } from "firebase/analytics"; // import { getAnalytics } from "firebase/analytics";
import { getFirestore, enableIndexedDbPersistence } from "firebase/firestore"; import {
getFirestore,
enableIndexedDbPersistence,
initializeFirestore,
} from "firebase/firestore";
import { import {
browserSessionPersistence, browserSessionPersistence,
getAuth, getAuth,
@@ -39,6 +43,10 @@ console.log("initialized firebase");
// const analytics = getAnalytics(app); // const analytics = getAnalytics(app);
initializeFirestore(app, {
ignoreUndefinedProperties: true,
});
// Initialize firestore persistence for data caching // Initialize firestore persistence for data caching
export const firestoreDb = getFirestore(app); export const firestoreDb = getFirestore(app);