forked from abner/for-legacy-web
If IDB is not present, allow app to load as normal
This commit is contained in:
1 parent
fd7abea536
commit
06b4e9bc87
2 files changed
+4
-2
No files matched your search
Vendored
+1
-1
Submodule external/lang updated: 50570240bc...9db39a2eec.
@@ -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" });
|
||||
|
||||
Reference in new issue
Block a user