Skip to content

Commit

Permalink
Merge pull request #4707 from martencassel/patch-1
Browse files Browse the repository at this point in the history
Fix typo in code comment for checkAuth
  • Loading branch information
Luwangel authored Apr 20, 2020
2 parents 2c167a4 + dc7fc37 commit 04c4b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-core/src/auth/useCheckAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? <Bar /> : <BarNotAuthenticated />;
Expand Down

0 comments on commit 04c4b0d

Please sign in to comment.