Remove test timeout
This commit is contained in:
@@ -3,7 +3,6 @@ import { Outlet, useNavigate } from "react-router-dom";
|
|||||||
import { client } from "../client";
|
import { client } from "../client";
|
||||||
import { useStore } from "../store";
|
import { useStore } from "../store";
|
||||||
import { Button } from "../styled/Button";
|
import { Button } from "../styled/Button";
|
||||||
import { timeout } from "../utils";
|
|
||||||
|
|
||||||
export function Root() {
|
export function Root() {
|
||||||
|
|
||||||
@@ -16,7 +15,6 @@ export function Root() {
|
|||||||
if (user !== null) return;
|
if (user !== null) return;
|
||||||
|
|
||||||
const { data, error } = await client.me.get();
|
const { data, error } = await client.me.get();
|
||||||
await timeout(1000);
|
|
||||||
|
|
||||||
if (error !== null) {
|
if (error !== null) {
|
||||||
navigate("/login");
|
navigate("/login");
|
||||||
|
|||||||
Reference in New Issue
Block a user