Before attempting to access firestore data, need to check if the db is available. If not, show an error.
Presumably this could occur if the user saves the app to their desktop while online, then goes offline before they launch the desktop version the first time, or if the call to firestore().enablePersistence() fails (can't persist on multiple devices/tabs at once, browser doesn't support it...)
Before attempting to access firestore data, need to check if the db is available. If not, show an error.
Presumably this could occur if the user saves the app to their desktop while online, then goes offline before they launch the desktop version the first time, or if the call to firestore().enablePersistence() fails (can't persist on multiple devices/tabs at once, browser doesn't support it...)