From dc7fc378184024f925ffb239608ff905bcb819ae Mon Sep 17 00:00:00 2001 From: marten Date: Mon, 20 Apr 2020 18:21:21 +0200 Subject: [PATCH] fix typo in example code Missing parentheses in comment. --- packages/ra-core/src/auth/useCheckAuth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-core/src/auth/useCheckAuth.ts b/packages/ra-core/src/auth/useCheckAuth.ts index 7522c9afbc7..af37639ea4c 100644 --- a/packages/ra-core/src/auth/useCheckAuth.ts +++ b/packages/ra-core/src/auth/useCheckAuth.ts @@ -34,7 +34,7 @@ import useNotify from '../sideEffect/useNotify'; * const [authenticated, setAuthenticated] = useState(true); // optimistic auth * useEffect(() => { * checkAuth({}, false) - * .then() => setAuthenticated(true)) + * .then(() => setAuthenticated(true)) * .catch(() => setAuthenticated(false)); * }, []); * return authenticated ? : ;