diff --git a/external/lang b/external/lang index 50570240..9db39a2e 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit 50570240bc09fc23794bb4452c1c0f35599b3219 +Subproject commit 9db39a2eecc5fbb7ed06d4598da60700e96e3274 diff --git a/src/context/revoltjs/RevoltClient.tsx b/src/context/revoltjs/RevoltClient.tsx index d489dee8..8f86c824 100644 --- a/src/context/revoltjs/RevoltClient.tsx +++ b/src/context/revoltjs/RevoltClient.tsx @@ -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" });