If IDB is not present, allow app to load as normal

This commit is contained in:
Paul
2021-06-20 10:17:34 +01:00
parent fd7abea536
commit 06b4e9bc87
2 changed files with 4 additions and 2 deletions

View File

@@ -138,7 +138,9 @@ function Context({ auth, sync, children, dispatcher }: Props) {
useEffect(() => {
(async () => {
await client.restore();
if (client.db) {
await client.restore();
}
if (auth.active) {
dispatcher({ type: "QUEUE_FAIL_ALL" });